OperationsControllerPostStartFirst - метод

Start operation of specified type. Returns its identifier, or 204 (No Content) if there are no such operations. Picks operations in order they were created. Method is available for administrators only.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpPostAttribute("start-first")]
[SessionMethodAttribute(UserAccessLevel.Administrator)]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
public Task<ActionResult<Guid?>> PostStartFirst(
	[FromQueryAttribute(Name = "type")] Guid typeID,
	CancellationToken cancellationToken = default
)

Параметры

typeID  Guid
Type identifier of operation to start. System types are listed in OperationTypes class.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskActionResultNullableGuid
Identifier of a started operation, or 204 (No Content) if there are no such operations.

См. также