IAuthenticatorAuthenticateAsync Method |
Authenticates the connection.
Namespace:
MongoDB.Driver.Core.Authentication
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax Task 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