OperationsControllerPostReportProgress - метод

Report progress of the operation. Operation have 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.0.4
C#
[HttpPostAttribute("{id:guid}/report-progress")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[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 async task.

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

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

См. также