OperationsControllerGetState - метод

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

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpGetAttribute("{id:guid}/get-state")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[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 async task.

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

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

См. также