private BsonDocument CreateInitialHelloCommand(IReadOnlyList <IAuthenticator> authenticators, bool loadBalanced = false) { var command = HelloHelper.CreateCommand(_serverApi, loadBalanced: loadBalanced); HelloHelper.AddClientDocumentToCommand(command, _clientDocument); HelloHelper.AddCompressorsToCommand(command, _compressors); return(HelloHelper.CustomizeCommand(command, authenticators)); }
private BsonDocument CreateInitialHelloCommand(IReadOnlyList <IAuthenticator> authenticators) { var command = HelloHelper.CreateCommand(); HelloHelper.AddClientDocumentToCommand(command, _clientDocument); HelloHelper.AddCompressorsToCommand(command, _compressors); return(HelloHelper.CustomizeCommand(command, authenticators)); }