Click or drag to resize
MimeKit

CryptographyContextRegister(FuncOpenPgpContext) Method

Registers a default OpenPgpContext factory.

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

Parameters

factory  FuncOpenPgpContext
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