AvatarContentTokenProvider - класс

Provider avatar content access tokens.

Definition

Пространство имён: Tessa.Content.Avatars
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public class AvatarContentTokenProvider : IAvatarContentTokenProvider
Inheritance
Object    AvatarContentTokenProvider
Implements
IAvatarContentTokenProvider

Заметки

The token can only exist as a single instance per user within the scope.

Конструкторы

AvatarContentTokenProvider Provider avatar content access tokens.

Свойства

Expiration The duration for which the token remains valid.
Scope The scope of the token, defining its permitted operations or access boundaries.
TokenByIDCache In-memory cache for tokens indexed by token ID. This cache helps reduce the number of repository calls when retrieving tokens by their string identifier. Tokens are stored for the configured expiration period or until manually removed.
TokenByUserIDCache In-memory cache for tokens indexed by user ID. This cache allows fast lookup of tokens associated with a specific user, avoiding unnecessary repository queries and improving performance in high-load scenarios. Tokens are evicted based on expiration or manual removal.

Методы

EqualsDetermines whether the specified object is equal to the current object.
(Унаследован от Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Унаследован от Object)
GetHashCodeServes as the default hash function.
(Унаследован от Object)
GetOrCreateTokenAsync 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.
GetTypeGets the Type of the current instance.
(Унаследован от Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Унаследован от Object)
ToStringReturns a string that represents the current object.
(Унаследован от Object)
TryGetTokenAsync Retrieves the information about an existing token token that has not expired, or if such a token was not found.

Поля

См. также