Table of Contents

Struct ClusterClosedEvent

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

Occurs after a cluster is closed.

public struct ClusterClosedEvent
Inherited Members

Constructors

ClusterClosedEvent(ClusterId, TimeSpan)

Initializes a new instance of the ClusterClosedEvent struct.

public ClusterClosedEvent(ClusterId clusterId, TimeSpan duration)

Parameters

clusterId ClusterId

The cluster identifier.

duration TimeSpan

The duration of time it took to close the cluster.

Properties

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

Duration

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

public TimeSpan Duration { get; }

Property Value

TimeSpan

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime