ApiAccessTokenProviderTryGetSessionTokenAsync - метод

Retrieves session token object for API access token.

Definition

Пространство имён: Tessa.Tokens.Api
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public Task<ISessionToken?> TryGetSessionTokenAsync(
	ApiAccessTokenData tokenData,
	CancellationToken cancellationToken = default
)

Параметры

tokenData  ApiAccessTokenData
Represents the full data associated with API access token.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

TaskISessionToken
Токен, содержащий информацию по сессии.

Реализации

IApiAccessTokenProviderTryGetSessionTokenAsync(ApiAccessTokenData, CancellationToken)

Заметки

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.

См. также