SessionsControllerDeleteSpecified - метод

Close session with specified identifier. Returns flag whether session was present and was closed. Method is available for administrators only.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
[HttpDeleteAttribute("{id:guid}")]
[SessionMethodAttribute(UserAccessLevel.Administrator, false, new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<bool>> DeleteSpecified(
	[FromRouteAttribute] Guid id,
	CancellationToken cancellationToken = default
)

Параметры

id  Guid
Identifier of session to close.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskActionResultBoolean
true if session was present and was closed; false otherwise.

См. также