Exemplo n.º 1
0
 // internal methods
 internal ClusterKey ToClusterKey()
 {
     return(new ClusterKey(
                _applicationName,
                _clusterConfigurator,
                _connectionMode,
                _connectTimeout,
                _credentials.ToList(),
                _heartbeatInterval,
                _heartbeatTimeout,
                _ipv6,
                _localThreshold,
                _maxConnectionIdleTime,
                _maxConnectionLifeTime,
                _maxConnectionPoolSize,
                _minConnectionPoolSize,
                _replicaSetName,
                _servers.ToList(),
                _serverSelectionTimeout,
                _socketTimeout,
                _sslSettings,
                _useSsl,
                _verifySslCertificate,
                _waitQueueSize,
                _waitQueueTimeout));
 }
 // internal methods
 internal ClusterKey ToClusterKey()
 {
     return(new ClusterKey(
                _allowInsecureTls,
                _applicationName,
                _clusterConfigurator,
                _compressors,
                _connectionMode,
                _connectTimeout,
                _credentials.ToList(),
                _heartbeatInterval,
                _heartbeatTimeout,
                _ipv6,
                _autoEncryptionOptions?.KmsProviders,
                _localThreshold,
                _maxConnectionIdleTime,
                _maxConnectionLifeTime,
                _maxConnectionPoolSize,
                _minConnectionPoolSize,
                MongoDefaults.TcpReceiveBufferSize, // TODO: add ReceiveBufferSize to MongoClientSettings?
                _replicaSetName,
                _autoEncryptionOptions?.SchemaMap,
                _scheme,
                _sdamLogFilename,
                MongoDefaults.TcpSendBufferSize, // TODO: add SendBufferSize to MongoClientSettings?
                _servers.ToList(),
                _serverSelectionTimeout,
                _socketTimeout,
                _sslSettings,
                _useTls,
                _waitQueueSize,
                _waitQueueTimeout));
 }
 // internal methods
 internal ClusterKey ToClusterKey()
 {
     return(new ClusterKey(
                _allowInsecureTls,
                _applicationName,
                _clusterConfigurator,
                _compressors,
                _connectionMode,
                _connectTimeout,
                _credentials.ToList(),
                _heartbeatInterval,
                _heartbeatTimeout,
                _ipv6,
                kmsProviders: null, // not supported for legacy
                _localThreshold,
                _maxConnectionIdleTime,
                _maxConnectionLifeTime,
                _maxConnectionPoolSize,
                _minConnectionPoolSize,
                MongoDefaults.TcpReceiveBufferSize,
                _replicaSetName,
                schemaMap: null, // not supported for legacy
                _scheme,
                _sdamLogFilename,
                MongoDefaults.TcpSendBufferSize,
                _servers.ToList(),
                _serverSelectionTimeout,
                _socketTimeout,
                _sslSettings,
                _useTls,
                _waitQueueSize,
                _waitQueueTimeout));
 }
 // internal methods
 internal ClusterKey ToClusterKey()
 {
     return(new ClusterKey(
                _applicationName,
                _clusterConfigurator,
                _connectionMode,
                _connectTimeout,
                _credentials.ToList(),
                _heartbeatInterval,
                _heartbeatTimeout,
                _ipv6,
                _localThreshold,
                _maxConnectionIdleTime,
                _maxConnectionLifeTime,
                _maxConnectionPoolSize,
                _minConnectionPoolSize,
                MongoDefaults.TcpReceiveBufferSize, // TODO: add ReceiveBufferSize to MongoClientSettings?
                _replicaSetName,
                _scheme,
                _sdamLogFilename,
                MongoDefaults.TcpSendBufferSize, // TODO: add SendBufferSize to MongoClientSettings?
                _servers.ToList(),
                _serverSelectionTimeout,
                _socketTimeout,
                _sslSettings,
                _useSsl,
                _verifySslCertificate,
                _waitQueueSize,
                _waitQueueTimeout));
 }