Authenticates the connection.
Namespace:
MongoDB.Driver.Core.Authentication
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
SyntaxTask AuthenticateAsync(
IConnection connection,
ConnectionDescription description,
CancellationToken cancellationToken
)
Function AuthenticateAsync (
connection As IConnection,
description As ConnectionDescription,
cancellationToken As CancellationToken
) As Task
abstract AuthenticateAsync :
connection : IConnection *
description : ConnectionDescription *
cancellationToken : CancellationToken -> Task
Parameters
- connection
- Type: MongoDB.Driver.Core.ConnectionsIConnection
The connection. - description
- Type: MongoDB.Driver.Core.ConnectionsConnectionDescription
The connection description. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskA Task.
See Also