Table of Contents

Constructor ClusterDescription

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

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 ClusterId

The cluster identifier.

directConnection bool

Whether to make a direct connection.

dnsMonitorException Exception

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

type ClusterType

The type.

servers IEnumerable<ServerDescription>

The servers.