ClientControllerPostDereserveNumber - метод
Dereserve specified number from the sequence. Used to perform an action when closing browser window, so can't operate with request body.
Пространство имён: Tessa.Web.Client.ControllersСборка: Tessa.Web.Client (в Tessa.Web.Client.dll) Версия: 4.0.4
[HttpPostAttribute("v1/client/sequences/dereserve")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<CardResponse>> PostDereserveNumber(
[FromQueryAttribute] string sequenceName,
[FromQueryAttribute] long number,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("v1/client/sequences/dereserve")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostDereserveNumber (
<FromQueryAttribute> sequenceName As String,
<FromQueryAttribute> number As Long,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of CardResponse))
public:
[HttpPostAttribute(L"v1/client/sequences/dereserve")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<CardResponse^>^>^ PostDereserveNumber(
[FromQueryAttribute] String^ sequenceName,
[FromQueryAttribute] long long number,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("v1/client/sequences/dereserve")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostDereserveNumber :
[<FromQueryAttribute>] sequenceName : string *
[<FromQueryAttribute>] number : int64 *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<CardResponse>>
- sequenceName String
- Sequence to dereserve number from. As it is query parameter of string type, URI encoding is required to pass it.
- number Int64
- Number to dereserve.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultCardResponseResponse to number dereserving operation
CardResponse as typed JSON.