SessionsControllerDeleteSpecified - метод
Close session with specified identifier. Returns flag whether session was present and was closed.
Method is available for administrators only.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpDeleteAttribute("{id:guid}")]
[SessionMethodAttribute(UserAccessLevel.Administrator)]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<bool>> DeleteSpecified(
[FromRouteAttribute] Guid id,
CancellationToken cancellationToken = default
)
<HttpDeleteAttribute("{id:guid}")>
<SessionMethodAttribute(UserAccessLevel.Administrator)>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function DeleteSpecified (
<FromRouteAttribute> id As Guid,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of Boolean))
public:
[HttpDeleteAttribute(L"{id:guid}")]
[SessionMethodAttribute(UserAccessLevel::Administrator)]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<bool>^>^ DeleteSpecified(
[FromRouteAttribute] Guid id,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpDeleteAttribute("{id:guid}")>]
[<SessionMethodAttribute(UserAccessLevel.Administrator)>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member DeleteSpecified :
[<FromRouteAttribute>] id : Guid *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<bool>>
- id Guid
- Identifier of session to close.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultBooleantrue if session was present and was closed;
false otherwise.