OperationsControllerPostComplete - метод

Complete operation by identifier, providing its result by response object. Operation isn't removed, so its creator could request the result.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[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
)

Параметры

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.

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

TaskIActionResult
204 (No Content).

См. также