コード例 #1
0
        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));
        }
コード例 #2
0
        private BsonDocument CreateInitialHelloCommand(IReadOnlyList <IAuthenticator> authenticators)
        {
            var command = HelloHelper.CreateCommand();

            HelloHelper.AddClientDocumentToCommand(command, _clientDocument);
            HelloHelper.AddCompressorsToCommand(command, _compressors);
            return(HelloHelper.CustomizeCommand(command, authenticators));
        }