MongoDB.Driver.MongoServerSettings.MongoServerSettings C# (CSharp) Метод

MongoServerSettings() публичный Метод

Creates a new instance of MongoServerSettings. Usually you would use a connection string instead.
public MongoServerSettings ( ) : System
Результат System
        public MongoServerSettings()
        {
            _connectionMode = ConnectionMode.Automatic;
            _connectTimeout = MongoDefaults.ConnectTimeout;
            _credentialsStore = new MongoCredentialsStore();
            _defaultCredentials = null;
            _guidRepresentation = MongoDefaults.GuidRepresentation;
            _ipv6 = false;
            _maxConnectionIdleTime = MongoDefaults.MaxConnectionIdleTime;
            _maxConnectionLifeTime = MongoDefaults.MaxConnectionLifeTime;
            _maxConnectionPoolSize = MongoDefaults.MaxConnectionPoolSize;
            _minConnectionPoolSize = MongoDefaults.MinConnectionPoolSize;
            _readPreference = ReadPreference.Primary;
            _replicaSetName = null;
            _secondaryAcceptableLatency = MongoDefaults.SecondaryAcceptableLatency;
            _servers = new List<MongoServerAddress> { new MongoServerAddress("localhost") };
            _socketTimeout = MongoDefaults.SocketTimeout;
            _useSsl = false;
            _verifySslCertificate = true;
            _waitQueueSize = MongoDefaults.ComputedWaitQueueSize;
            _waitQueueTimeout = MongoDefaults.WaitQueueTimeout;
#pragma warning disable 612, 618
            _writeConcern = MongoDefaults.SafeMode.WriteConcern;
#pragma warning restore
        }

Same methods

MongoServerSettings::MongoServerSettings ( ConnectionMode connectionMode, System.TimeSpan connectTimeout, MongoCredentialsStore credentialsStore, MongoDB.Driver.MongoCredentials defaultCredentials, GuidRepresentation guidRepresentation, bool ipv6, System.TimeSpan maxConnectionIdleTime, System.TimeSpan maxConnectionLifeTime, int maxConnectionPoolSize, int minConnectionPoolSize, ReadPreference readPreference, string replicaSetName, MongoDB.Driver.SafeMode safeMode, System.TimeSpan secondaryAcceptableLatency, IEnumerable servers, System.TimeSpan socketTimeout, bool useSsl, bool verifySslCertificate, int waitQueueSize, System.TimeSpan waitQueueTimeout ) : System