<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.22.0" />

Microsoft.IdentityModel.Tokens.Configuration.LKGConfigurationCacheOptions

Defines the options which can be used to configure the internal LKG configuration cache. See EventBasedLRUCache<T, U> for more details.
public static readonly int DefaultLKGConfigurationSizeLimit

10 is the default size limit of the cache (in number of items) for last known good configuration.

Gets or sets the IEqualityComparer<T> that is used to determine equality of values for BaseConfiguration.

public int LastKnownGoodConfigurationSizeLimit { get; set; }

Gets or sets the size limit of the cache (in number of items) for last known good configuration.

public bool RemoveExpiredValues { get; set; }

Whether or not to remove expired items.

The event queue task creation option, default to None instead of LongRunning as LongRunning will always start a task on a new thread instead of a thread from ThreadPool.