TokenRepositoryCached - класс

Repository for working with tokens using cache.

Definition

Пространство имён: Tessa.Tokens
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public class TokenRepositoryCached : TokenRepository, 
	ITokenRepositoryCached, ITokenRepository
Inheritance
Object    TokenRepository    TokenRepositoryCached
Implements
ITokenRepository, ITokenRepositoryCached

Заметки

The repository uses an LRU cache with capacity of 10 000 elements and an expired token cleanup period of 1h.

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

TokenRepositoryCached Repository for working with tokens using cache.

Методы

AddTokenAsync Adds new token information.
(Переопределяет TokenRepositoryAddTokenAsync(ITokenInfo, CancellationToken))
DeleteExpiredTokensAsync Deletes the information for the expired tokens.
(Унаследован от TokenRepository)
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)
GetTypeGets the Type of the current instance.
(Унаследован от Object)
InvalidateAsync Clears the cached data and resets its state, removing all entries.
MemberwiseCloneCreates a shallow copy of the current Object.
(Унаследован от Object)
ToStringReturns a string that represents the current object.
(Унаследован от Object)
TryDeleteByHashAsync Deletes the token information by its hash.
(Переопределяет TokenRepositoryTryDeleteByHashAsync(Byte, CancellationToken))
TryDeleteByIDAsync Deletes the token information by its identifier.
(Переопределяет TokenRepositoryTryDeleteByIDAsync(String, CancellationToken))
TryDeleteByTokenAsync Deletes the token information for given token.
(Переопределяет TokenRepositoryTryDeleteByTokenAsync(String, CancellationToken))
TryGetByHashAsync Returns token information by its hash.
(Переопределяет TokenRepositoryTryGetByHashAsync(Byte, CancellationToken))
TryGetByIDAsync Returns token information by its identifier.
(Переопределяет TokenRepositoryTryGetByIDAsync(String, CancellationToken))
TryGetByTokenAsync Returns token information for given token.
(Переопределяет TokenRepositoryTryGetByTokenAsync(String, CancellationToken))
TryGetTokensAsync Returns a collection of token information based on the filter criteria.
(Унаследован от TokenRepository)

Поля

DbmsErrorCodeProvider
(Унаследован от TokenRepository)
DbScope
(Унаследован от TokenRepository)
TokenCache 
TokenSignatureProvider
(Унаследован от TokenRepository)

См. также