CardsControllerPostStoreStream - метод

Save card with its files contents. Similar to request PostStore(CardStoreRequest, CancellationToken), but allows to provide files contents in input stream (files are attached to the card as being created or replaced). Input stream Stream, consists of header CardHeader, store request CardStoreRequest and binary contents of files to save.

Method is used in desktop client apps. Use .NET client API to write the stream.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpPostAttribute("store-stream")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[DisableRequestSizeLimitAttribute]
[ConsumesAttribute("application/octet-stream", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<CardStoreResponse>> PostStoreStream(
	[FromBodyAttribute] Stream cardStream,
	CancellationToken cancellationToken = default
)

Параметры

cardStream  Stream
Streamed data containing request to save the card.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

Возвращаемое значение

TaskActionResultCardStoreResponse
Response to the request.

См. также