ApiAccessTokenLocalCache - конструктор
Пространство имён: Tessa.Tokens.ApiСборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
public ApiAccessTokenLocalCache(
IClock clock,
Func<TimeSpan> getCleanupPeriodFunc
)
Public Sub New (
clock As IClock,
getCleanupPeriodFunc As Func(Of TimeSpan)
)
public:
ApiAccessTokenLocalCache(
IClock^ clock,
Func<TimeSpan>^ getCleanupPeriodFunc
)
new :
clock : IClock *
getCleanupPeriodFunc : Func<TimeSpan> -> ApiAccessTokenLocalCache
Параметры
- 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.