SessionsLegacy3XControllerDeleteCurrent - метод

Close current session determined by HTTP auth header or by token query parameter. Returns flag whether session was present and was closed.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpPostAttribute("close")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<bool>> DeleteCurrent(
	[FromQueryAttribute][SessionTokenAttribute] string? token = null,
	CancellationToken cancellationToken = default
)

Параметры

token  String  (Optional)
Auth token to close the session. If passed then HTTP auth header is ignored.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

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

См. также