CryptoProviderFactory.CacheCustomProviders Property

Definition

Gets or sets a bool controlling if SignatureProvider instances created by CustomCryptoProvider should be cached. Default is false.

public bool CacheCustomProviders { get; set; }
member this.CacheCustomProviders : bool with get, set
Public Property CacheCustomProviders As Boolean

Property Value

Remarks

When true, signature providers returned by Create(String, Object[]) are cached using the same CryptoProviderCache used for built-in providers. This avoids repeated provider creation and key materialisation on every signature validation.

Applies to