Constructor ClusterDescription
ClusterDescription(ClusterId, ClusterConnectionMode, ClusterType, IEnumerable<ServerDescription>)
Initializes a new instance of the ClusterDescription class.
[Obsolete("Use the constructor that has a directConnection parameter.")]
public ClusterDescription(ClusterId clusterId, ClusterConnectionMode connectionMode, ClusterType type, IEnumerable<ServerDescription> servers)
Parameters
clusterId
ClusterIdThe cluster identifier.
connectionMode
ClusterConnectionModeThe connection mode.
type
ClusterTypeThe type.
servers
IEnumerable<ServerDescription>The servers.
ClusterDescription(ClusterId, ClusterConnectionMode, Exception, ClusterType, IEnumerable<ServerDescription>)
Initializes a new instance of the ClusterDescription class.
[Obsolete("Use the constructor that has a directConnection parameter.")]
public ClusterDescription(ClusterId clusterId, ClusterConnectionMode connectionMode, Exception dnsMonitorException, ClusterType type, IEnumerable<ServerDescription> servers)
Parameters
clusterId
ClusterIdThe cluster identifier.
connectionMode
ClusterConnectionModeThe connection mode.
dnsMonitorException
ExceptionThe last DNS monitor exception (null if there was none).
type
ClusterTypeThe type.
servers
IEnumerable<ServerDescription>The servers.
ClusterDescription(ClusterId, bool?, Exception, ClusterType, IEnumerable<ServerDescription>)
Initializes a new instance of the ClusterDescription class.
public ClusterDescription(ClusterId clusterId, bool? directConnection, Exception dnsMonitorException, ClusterType type, IEnumerable<ServerDescription> servers)
Parameters
clusterId
ClusterIdThe cluster identifier.
directConnection
bool?Whether to make a direct connection.
dnsMonitorException
ExceptionThe last DNS monitor exception (null if there was none).
type
ClusterTypeThe type.
servers
IEnumerable<ServerDescription>The servers.