OperationsControllerGetState - метод

Get state and progress of operation by its identifier, or 204 (No Content) if the operation isn't active (for example, it was removed after completion).

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
[HttpGetAttribute("{id:guid}/get-state")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
public Task<ActionResult<OperationStateAndProgress?>> GetState(
	[FromRouteAttribute] Guid id,
	CancellationToken cancellationToken = default
)

Параметры

id  Guid
Identifier of operation.
cancellationToken  CancellationToken  (Optional)
Token to cancel an async task.

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

TaskActionResultNullableOperationStateAndProgress
State and progress of operation by its identifier, or 204 (No Content) if the operation isn't active (for example, it was removed after completion).

См. также