ContentControllerRevokeTokenAsync - метод
Revokes content token by it's hash.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpPostAttribute("token/revoke")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ConsumesAttribute("text/plain", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<IActionResult> RevokeTokenAsync(
[FromBodyAttribute] string hash,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("token/revoke")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<ConsumesAttribute("text/plain", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function RevokeTokenAsync (
<FromBodyAttribute> hash As String,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpPostAttribute(L"token/revoke")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[ConsumesAttribute(L"text/plain", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<IActionResult^>^ RevokeTokenAsync(
[FromBodyAttribute] String^ hash,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("token/revoke")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<ConsumesAttribute("text/plain", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member RevokeTokenAsync :
[<FromBodyAttribute>] hash : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>
- hash String
- Token hash hex string.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskIActionResultResponse to the request or status
BadRequest if there are no registered handlers for requested type.