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).
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[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
)
<HttpGetAttribute("{id:guid}/get-state")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
<ProducesResponseTypeAttribute(204)>
Public Function GetState (
<FromRouteAttribute> id As Guid,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of OperationStateAndProgress?))
public:
[HttpGetAttribute(L"{id:guid}/get-state")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
Task<ActionResult<Nullable<OperationStateAndProgress>>^>^ GetState(
[FromRouteAttribute] Guid id,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("{id:guid}/get-state")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
[<ProducesResponseTypeAttribute(204)>]
member GetState :
[<FromRouteAttribute>] id : Guid *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<Nullable<OperationStateAndProgress>>>
- 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).