OperationsControllerPostComplete - метод
Complete operation by identifier, providing its result by response object.
Operation isn't removed, so its creator could request the result.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpPostAttribute("{id:guid}/complete")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(204)]
public Task<IActionResult> PostComplete(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] OperationResponse? response,
[FromQueryAttribute(Name = "no-response")] bool noResponse = false,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("{id:guid}/complete")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(204)>
Public Function PostComplete (
<FromRouteAttribute> id As Guid,
<FromBodyAttribute> response As OperationResponse,
<FromQueryAttribute(Name := "no-response")> Optional noResponse As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpPostAttribute(L"{id:guid}/complete")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(204)]
Task<IActionResult^>^ PostComplete(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] OperationResponse^ response,
[FromQueryAttribute(Name = L"no-response")] bool noResponse = false,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("{id:guid}/complete")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(204)>]
member PostComplete :
[<FromRouteAttribute>] id : Guid *
[<FromBodyAttribute>] response : OperationResponse *
[<FromQueryAttribute(Name = "no-response")>] ?noResponse : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _noResponse = defaultArg noResponse false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>
- id Guid
- Identifier of operation to complete.
- response OperationResponse
- Operation result (response). Send empty body (null) if operation response isn't specified.
- noResponse Boolean (Optional)
- Flag whether response is ignored, as it is provided as null.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskIActionResult204 (No Content).