OperationsControllerGetStatus - метод

Get state and status 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.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
[HttpGetAttribute("{id:guid}/get-status")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
public Task<ActionResult<OperationStateAndStatus?>> GetStatus(
	[FromRouteAttribute] Guid id,
	CancellationToken cancellationToken = default
)

Параметры

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

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

TaskActionResultNullableOperationStateAndStatus
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).

См. также