Struct ResolvedTokenCache
The cache selected by a TokenCacheOptions and the maximum time an entry is kept in it.
public readonly record struct ResolvedTokenCache : IEquatable<ResolvedTokenCache>
- Implements
- Inherited Members
Constructors
ResolvedTokenCache(ICache, TimeSpan, string?)
The cache selected by a TokenCacheOptions and the maximum time an entry is kept in it.
public ResolvedTokenCache(ICache Cache, TimeSpan MaxTime, string? CacheName = null)
Parameters
CacheICacheThe cache.
MaxTimeTimeSpanThe MaxTime.
CacheNamestringThe name of the cache, to find it again with GetCache(string?) even when the options change, or null for the token cache (the cache of the default TokenCacheOptions).
Properties
Cache
The cache.
public ICache Cache { get; init; }
Property Value
CacheName
The name of the cache, to find it again with GetCache(string?) even when the options change, or null for the token cache (the cache of the default TokenCacheOptions).
public string? CacheName { get; init; }
Property Value
MaxTime
The MaxTime.
public TimeSpan MaxTime { get; init; }