CardsControllerGetFileContentByToken - метод

Get contents for a file by content token.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
[HttpGetAttribute("file-content")]
[SessionMethodAttribute(UserAccessLevel.Regular, true, new string[] { ... })]
[ProducesAttribute("application/octet-stream", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<FileResult> GetFileContentByToken(
	[FromQueryAttribute] string token,
	[FromQueryAttribute][SessionTokenAttribute] string? session = null,
	CancellationToken cancellationToken = default
)

Параметры

token  String
Content token.
session  String  (Optional)
Session token. (XML-format encoded to base64) or null if the session token is passed in another suitable way, for example, in cookies.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskFileResult
Response FileStreamResult.

См. также