AvatarContentTokenProviderGetOrCreateTokenAsync - метод

Retrieves the token information based on the request parameters request. If the token has not been issued yet, or the current token has expired, a new token will be issued.

Definition

Пространство имён: Tessa.Content.Avatars
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public virtual Task<ITokenInfo?> GetOrCreateTokenAsync(
	AvatarContentTokenRequest request,
	IValidationResultBuilder validationResult,
	CancellationToken cancellationToken = default
)

Параметры

request  AvatarContentTokenRequest
Request to obtain a token for accessing avatar content.
validationResult  IValidationResultBuilder
Объект, выполняющий построение результата валидации.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

TaskITokenInfo
The token information as ITokenInfo that can be used to access content, or if the token could not be retrieved or created.

Реализации

IAvatarContentTokenProviderGetOrCreateTokenAsync(AvatarContentTokenRequest, IValidationResultBuilder, CancellationToken)

См. также