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
IConnectionThe connection.
conversation
SaslAuthenticator.SaslConversationThe SASL conversation.
description
ConnectionDescriptionThe connection description.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<SaslAuthenticator.ISaslStep>
The initial SASL step.