public class AvatarContentTokenProvider : IAvatarContentTokenProviderPublic Class AvatarContentTokenProvider
Implements IAvatarContentTokenProviderpublic ref class AvatarContentTokenProvider : IAvatarContentTokenProvidertype AvatarContentTokenProvider =
class
interface IAvatarContentTokenProvider
end| 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. |
| Equals | Determines whether the specified object is equal to the current object. (Унаследован от Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Унаследован от Object) |
| GetHashCode | Serves 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. |
| GetType | Gets the Type of the current instance. (Унаследован от Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Унаследован от Object) |
| ToString | Returns 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. |