CompilationControllerPostSetSourcesFile - метод
Set script sources from file.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.3+85077ef6104b2e81389e52f8b825d77905da3c54
[HttpPostAttribute("set-sources-file")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ConsumesAttribute("multipart/form-data", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<PlainValidationResult>> PostSetSourcesFile(
[RequiredAttribute] IFormFile file,
[FromFormAttribute(Name = "request")][ModelBinderAttribute(BinderType = typeof(TypedJsonBinder))] TessaCompilationRequest<TessaCompilationItem>? request = null,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("set-sources-file")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<ConsumesAttribute("multipart/form-data", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostSetSourcesFile (
<RequiredAttribute> file As IFormFile,
<FromFormAttribute(Name := "request")><ModelBinderAttribute(BinderType := GetType(TypedJsonBinder))> Optional request As TessaCompilationRequest(Of TessaCompilationItem) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of PlainValidationResult))
public:
[HttpPostAttribute(L"set-sources-file")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[ConsumesAttribute(L"multipart/form-data", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<PlainValidationResult^>^>^ PostSetSourcesFile(
[RequiredAttribute] IFormFile^ file,
[FromFormAttribute(Name = L"request")][ModelBinderAttribute(BinderType = typeof(TypedJsonBinder))] TessaCompilationRequest<TessaCompilationItem^>^ request = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("set-sources-file")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<ConsumesAttribute("multipart/form-data", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostSetSourcesFile :
[<RequiredAttribute>] file : IFormFile *
[<FromFormAttribute(Name = "request")>][<ModelBinderAttribute(BinderType = typeof(TypedJsonBinder))>] ?request : TessaCompilationRequest<TessaCompilationItem> *
?cancellationToken : CancellationToken
(* Defaults:
let _request = defaultArg request null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<PlainValidationResult>>
- file IFormFile
- File with sources.
- request TessaCompilationRequestTessaCompilationItem (Optional)
- Request with information about objects to upload scripts or null if all scripts should be uploaded.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultPlainValidationResultResult of operation.