Method Connect
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.dll
Connect(KmsConnectionContext, CancellationToken)
Opens a connection to the specified KMS host.
Stream Connect(KmsConnectionContext context, CancellationToken cancellationToken)
Parameters
contextKmsConnectionContextDescribes the KMS host to connect to.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Stream
A stream connected to the KMS host. The driver wraps this stream in TLS. Must not be null.