Table of Contents

Method InitializeAsync

Namespace
MongoDB.Driver.Core.Authentication
Assembly
MongoDB.Driver.Core.dll

InitializeAsync(IConnection, SaslConversation, ConnectionDescription, CancellationToken)

Initializes the mechanism.

Task<SaslAuthenticator.ISaslStep> InitializeAsync(IConnection connection, SaslAuthenticator.SaslConversation conversation, ConnectionDescription description, CancellationToken cancellationToken)

Parameters

connection IConnection

The connection.

conversation SaslAuthenticator.SaslConversation

The SASL conversation.

description ConnectionDescription

The connection description.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<SaslAuthenticator.ISaslStep>

The initial SASL step.