ApplicationsControllerPostDownload - метод
Download stream with binary app data.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpPostAttribute("download")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[TypedJsonBodyAttribute(ConvertPascalCasing = true)]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/octet-stream", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<Stream>> PostDownload(
[FromBodyAttribute] ApplicationDownloadRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("download")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<TypedJsonBodyAttribute(ConvertPascalCasing := true)>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/octet-stream", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostDownload (
<FromBodyAttribute> request As ApplicationDownloadRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of Stream))
public:
[HttpPostAttribute(L"download")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[TypedJsonBodyAttribute(ConvertPascalCasing = true)]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/octet-stream", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<Stream^>^>^ PostDownload(
[FromBodyAttribute] ApplicationDownloadRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("download")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<TypedJsonBodyAttribute(ConvertPascalCasing = true)>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/octet-stream", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostDownload :
[<FromBodyAttribute>] request : ApplicationDownloadRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<Stream>>
- request ApplicationDownloadRequest
- Request to download app.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultStreamStream with binary app data.