Table of Contents

Struct ResolvedTokenCache

Namespace
Arc4u.OAuth2.Token
Assembly
Arc4u.OAuth2.dll

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

Cache ICache

The cache.

MaxTime TimeSpan

The MaxTime.

CacheName string

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).

Properties

Cache

The cache.

public ICache Cache { get; init; }

Property Value

ICache

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

string

MaxTime

The MaxTime.

public TimeSpan MaxTime { get; init; }

Property Value

TimeSpan