Cryptography ModuleInitialize Method
Initializes the cryptography module.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public static void Initialize()Remarks
Initializes the cryptography module by registering the cryptographic entity factory with ParserOptions so that the parser will construct cryptographic MIME entities such as MultipartSigned, MultipartEncrypted and ApplicationPkcs7Mime. Without it, those entities will be parsed as a plain Multipart or MimePart.
This method is called automatically the first time the CryptographyContext class is used (for example, via Register(Type)), but applications should call it during startup if they might parse messages before then.
It is safe to call this method more than once.