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

Microsoft.IdentityModel.Tokens.InMemoryCryptoProviderCache

Defines a cache for crypto providers. Current support is limited to SignatureProvider only.

Creates a new instance of InMemoryCryptoProviderCache using the default CryptoProviderCacheOptions.

public InMemoryCryptoProviderCache(CryptoProviderCacheOptions cryptoProviderCacheOptions)

Creates a new instance of InMemoryCryptoProviderCache using the specified cryptoProviderCacheOptions.

public void Dispose()

Calls Dispose and SuppressFinalize Note: the EventBasedLRUCache is no longer being disposed of, but since this is a public class and can be used as base class of custom cache implementations, we need to keep it as some implementations may override Dispose().

protected virtual void Dispose(bool disposing)

If disposing is true, this method disposes of _signingSignatureProviders and _verifyingSignatureProviders.