IApiAccessTokenProviderTryGetSessionTokenAsync - метод
Retrieves session token object for API access token.
Пространство имён: Tessa.Tokens.ApiСборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
Task<ISessionToken?> TryGetSessionTokenAsync(
ApiAccessTokenData tokenData,
CancellationToken cancellationToken = default
)
Function TryGetSessionTokenAsync (
tokenData As ApiAccessTokenData,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ISessionToken)
Task<ISessionToken^>^ TryGetSessionTokenAsync(
ApiAccessTokenData^ tokenData,
CancellationToken cancellationToken = CancellationToken()
)
abstract TryGetSessionTokenAsync :
tokenData : ApiAccessTokenData *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ISessionToken>
- tokenData ApiAccessTokenData
Represents the full data associated with API access token.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskISessionToken
Токен, содержащий информацию по сессии.
The session will not be opened and the session token object will not be written
to the repository. The created session token is used as a scope - it provides
the context within which actions are performed from under the token.