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.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[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
)
<HttpPostAttribute("{id:guid}/report-progress")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostReportProgress (
<FromRouteAttribute> id As Guid,
<FromQueryAttribute> value As Double,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of Boolean))
public:
[HttpPostAttribute(L"{id:guid}/report-progress")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<bool>^>^ PostReportProgress(
[FromRouteAttribute] Guid id,
[FromQueryAttribute] double value,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("{id:guid}/report-progress")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostReportProgress :
[<FromRouteAttribute>] id : Guid *
[<FromQueryAttribute>] value : float *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<bool>>
- id Guid
- Identifier of operation.
- value Double
- Progress percentage of operation between 0 and 100.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultBooleantrue, if operation is found and its progress is set;
false otherwise.