Constructor ClusterSettings
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.Core.dll
ClusterSettings(Optional<ClusterConnectionMode>, Optional<ConnectionModeSwitch>, Optional<CryptClientSettings>, Optional<bool?>, Optional<IEnumerable<EndPoint>>, Optional<bool>, Optional<TimeSpan>, Optional<int>, Optional<string>, Optional<ServerApi>, Optional<TimeSpan>, Optional<IServerSelector>, Optional<IServerSelector>, Optional<ConnectionStringScheme>, Optional<int>, Optional<string>)
Initializes a new instance of the ClusterSettings class.
public ClusterSettings(Optional<ClusterConnectionMode> connectionMode = default, Optional<ConnectionModeSwitch> connectionModeSwitch = default, Optional<CryptClientSettings> cryptClientSettings = default, Optional<bool?> directConnection = default, Optional<IEnumerable<EndPoint>> endPoints = default, Optional<bool> loadBalanced = default, Optional<TimeSpan> localThreshold = default, Optional<int> maxServerSelectionWaitQueueSize = default, Optional<string> replicaSetName = default, Optional<ServerApi> serverApi = default, Optional<TimeSpan> serverSelectionTimeout = default, Optional<IServerSelector> preServerSelector = default, Optional<IServerSelector> postServerSelector = default, Optional<ConnectionStringScheme> scheme = default, Optional<int> srvMaxHosts = default, Optional<string> srvServiceName = default)
Parameters
connectionModeOptional<ClusterConnectionMode>The connection mode.
connectionModeSwitchOptional<ConnectionModeSwitch>The connection mode switch.
cryptClientSettingsOptional<CryptClientSettings>Crypt client settings.
directConnectionOptional<bool?>The directConnection.
endPointsOptional<IEnumerable<EndPoint>>The end points.
loadBalancedOptional<bool>The load balanced.
localThresholdOptional<TimeSpan>The local threshold.
maxServerSelectionWaitQueueSizeOptional<int>Maximum size of the server selection wait queue.
replicaSetNameOptional<string>Name of the replica set.
serverApiOptional<ServerApi>The server API.
serverSelectionTimeoutOptional<TimeSpan>The server selection timeout.
preServerSelectorOptional<IServerSelector>The pre server selector.
postServerSelectorOptional<IServerSelector>The post server selector.
schemeOptional<ConnectionStringScheme>The connection string scheme.
srvMaxHostsOptional<int>Limits the number of SRV records used to populate the seedlist during initial discovery, as well as the number of additional hosts that may be added during SRV polling.
srvServiceNameOptional<string>The SRV service name which modifies the srv URI to look like:
Defaults to "mongodb"._{srvServiceName}._tcp.{hostname}.{domainname}