CardsController.PostGetFileContentStream - метод
Загружает содержимое файла с указанными параметрами в виде агрегированного потока
Stream,
содержащего результат запроса
CardGetFileContentResponse и бинарное содержимое файла.
Метод рекомендуется для использования в desktop-клиенте.
Возвращает объект, содержащий ответ на запрос и собственно бинарное содержимое файла.
Используйте клиентское API карточек desktop-клиента, чтобы прочитать поток данных.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 3.6.0.23
[HttpPostAttribute("get-file-content-stream")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/octet-stream", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<Stream> PostGetFileContentStream(
[FromBodyAttribute] CardGetFileContentRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("get-file-content-stream")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/octet-stream", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostGetFileContentStream (
<FromBodyAttribute> request As CardGetFileContentRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Stream)
public:
[HttpPostAttribute(L"get-file-content-stream")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/octet-stream", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<Stream^>^ PostGetFileContentStream(
[FromBodyAttribute] CardGetFileContentRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("get-file-content-stream")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/octet-stream", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostGetFileContentStream :
[<FromBodyAttribute>] request : CardGetFileContentRequest *
?cancellationToken : CancellationToken
-> Task<Stream>
- request CardGetFileContentRequest
- Запрос на загрузку содержимого файла.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
Task<Stream>Ответ на запрос на загрузку содержимого файла и собственно бинарное содержимое файла.