SessionsControllerGet - метод
Returns the current token in json form.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpGetAttribute]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[TypedJsonBodyAttribute]
[ProducesAttribute("application/json", new string[] { ... })]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<SessionToken>> Get(
[FromQueryAttribute][SessionTokenAttribute] string? token = null,
CancellationToken cancellationToken = default
)
<HttpGetAttribute>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<TypedJsonBodyAttribute>
<ProducesAttribute("application/json", New String() { ... })>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function Get (
<FromQueryAttribute><SessionTokenAttribute> Optional token As String = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of SessionToken))
public:
[HttpGetAttribute]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[TypedJsonBodyAttribute]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<SessionToken^>^>^ Get(
[FromQueryAttribute][SessionTokenAttribute] String^ token = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<TypedJsonBodyAttribute>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member Get :
[<FromQueryAttribute>][<SessionTokenAttribute>] ?token : string *
?cancellationToken : CancellationToken
(* Defaults:
let _token = defaultArg token null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<SessionToken>>
- token String (Optional)
- Current session token.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultSessionTokenCurrent token in json form.