ApiAccessTokenLocalCache - конструктор

Local in-memory cache for API access tokens. Use IApiAccessTokenLocalCacheProvider to resolve an instance.

Definition

Пространство имён: Tessa.Tokens.Api
Сборка: Tessa (в Tessa.dll) Версия: 4.2.3+85077ef6104b2e81389e52f8b825d77905da3c54
C#
public ApiAccessTokenLocalCache(
	IClock clock,
	Func<TimeSpan> getCleanupPeriodFunc
)

Параметры

clock  IClock
Объект для предоставления текущего времени в формате Utc.
getCleanupPeriodFunc  FuncTimeSpan
Period after which tokens should be removed from the cache.
Allowed values:
  • < 0 – no automatic cleanup will occur;
  • 0 – cleaning each time the token is received;
  • > 0 – cleaning at specified intervals.

См. также