Table of Contents

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

context KmsConnectionContext

Describes the KMS host to connect to.

cancellationToken CancellationToken

The cancellation token.

Returns

Stream

A stream connected to the KMS host. The driver wraps this stream in TLS. Must not be null.