CryptographyContextRegister(FuncOpenPgpContext) Method

Registers a default OpenPgpContext factory.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public static void Register(
	Func<OpenPgpContext> factory
)

Parameters

factory  FuncOpenPgpContext
A factory that creates a new instance of OpenPgpContext.

Remarks

Registers a factory that will return a new instance of the default OpenPgpContext.

Exceptions

ArgumentNullException factory is .

See Also