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.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[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
)
<HttpPostAttribute("start-first")>
<SessionMethodAttribute(UserAccessLevel.Administrator)>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
<ProducesResponseTypeAttribute(204)>
Public Function PostStartFirst (
<FromQueryAttribute(Name := "type")> typeID As Guid,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of Guid?))
public:
[HttpPostAttribute(L"start-first")]
[SessionMethodAttribute(UserAccessLevel::Administrator)]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
Task<ActionResult<Nullable<Guid>>^>^ PostStartFirst(
[FromQueryAttribute(Name = L"type")] Guid typeID,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("start-first")>]
[<SessionMethodAttribute(UserAccessLevel.Administrator)>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
[<ProducesResponseTypeAttribute(204)>]
member PostStartFirst :
[<FromQueryAttribute(Name = "type")>] typeID : Guid *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<Nullable<Guid>>>
- typeID Guid
- Type identifier of operation to start. System types are listed in OperationTypes class.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultNullableGuidIdentifier of a started operation, or 204 (No Content) if there are no such operations.