Table of Contents

Class ClusterDescription

Namespace
MongoDB.Driver.Core.Clusters
Assembly
MongoDB.Driver.Core.dll

Represents information about a cluster.

public sealed class ClusterDescription : IEquatable<ClusterDescription>
Inheritance
ClusterDescription
Implements
Inherited Members

Constructors

ClusterDescription(ClusterId, ClusterConnectionMode, ClusterType, IEnumerable<ServerDescription>)

Initializes a new instance of the ClusterDescription class.

ClusterDescription(ClusterId, ClusterConnectionMode, Exception, ClusterType, IEnumerable<ServerDescription>)

Initializes a new instance of the ClusterDescription class.

ClusterDescription(ClusterId, bool?, Exception, ClusterType, IEnumerable<ServerDescription>)

Initializes a new instance of the ClusterDescription class.

Properties

ClusterId

Gets the cluster identifier.

ConnectionMode

Gets the connection mode.

ConnectionModeSwitch

Gets the connection mode switch.

DirectConnection

Gets the DirectConnection.

DnsMonitorException

Gets the last DNS monitor exception (null if there was none).

IsCompatibleWithDriver

Gets a value indicating whether this cluster is compatible with the driver.

IsDirectConnection

Gets whether the connection mode or the direct connection flag are configured as a direct connection.

LogicalSessionTimeout

Gets the logical session timeout.

Servers

Gets the servers.

State

Gets the cluster state.

Type

Gets the cluster type.

Methods

Equals(ClusterDescription)
Equals(object)
GetHashCode()
ToString()
WithDnsMonitorException(Exception)

Returns a new ClusterDescription with a changed DnsMonitorException.

WithServerDescription(ServerDescription)

Returns a new ClusterDescription with a changed ServerDescription.

WithType(ClusterType)

Returns a new ClusterDescription with a changed ClusterType.

WithoutServerDescription(EndPoint)

Returns a new ClusterDescription with a ServerDescription removed.