Click or drag to resize
MimeKit

CryptographyContextRegister Method (FuncOpenPgpContext)

Registers a default OpenPgpContext factory.

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

Parameters

factory
Type: SystemFuncOpenPgpContext
A factory that creates a new instance of OpenPgpContext.
Exceptions
ExceptionCondition
ArgumentNullExceptionfactory is null.
Remarks
Registers a factory that will return a new instance of the default OpenPgpContext.
See Also