OperationsControllerPostReportProgress - метод

Report progress of the operation. Operation has to be started with flag ReportsProgress. Returns true if operation is found and its progress is set.

Definition

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

Параметры

id  Guid
Identifier of operation.
value  Double
Progress percentage of operation between 0 and 100.
cancellationToken  CancellationToken  (Optional)
Token to cancel an async task.

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

TaskActionResultBoolean
true, if operation is found and its progress is set; false otherwise.

См. также