Table of Contents

Struct ClusterOpenedEvent

Namespace
MongoDB.Driver.Core.Events
Assembly
MongoDB.Driver.Core.dll

Occurs after a cluster is opened.

public struct ClusterOpenedEvent
Inherited Members

Constructors

ClusterOpenedEvent(ClusterId, ClusterSettings, TimeSpan)

Initializes a new instance of the ClusterOpenedEvent struct.

public ClusterOpenedEvent(ClusterId clusterId, ClusterSettings clusterSettings, TimeSpan duration)

Parameters

clusterId ClusterId

The cluster identifier.

clusterSettings ClusterSettings

The cluster settings.

duration TimeSpan

The duration of time it took to open the cluster.

Properties

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

ClusterSettings

Gets the cluster settings.

public ClusterSettings ClusterSettings { get; }

Property Value

ClusterSettings

Duration

Gets the duration of time it took to open the cluster.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime