Method ConnectAsync
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.dll
ConnectAsync(KmsConnectionContext, CancellationToken)
Opens a connection to the specified KMS host.
Task<Stream> ConnectAsync(KmsConnectionContext context, CancellationToken cancellationToken)
Parameters
contextKmsConnectionContextDescribes the KMS host to connect to.
cancellationTokenCancellationTokenThe cancellation token.