Table of Contents

Method CustomizeInitialHelloCommand

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

CustomizeInitialHelloCommand(BsonDocument, CancellationToken)

Optionally customizes hello or legacy hello command.

public BsonDocument CustomizeInitialHelloCommand(BsonDocument helloCommand, CancellationToken cancellationToken)

Parameters

helloCommand BsonDocument

Initial command.

cancellationToken CancellationToken

The cancellation token.

Returns

BsonDocument

Optionally mutated command.