Table of Contents

Struct ClusterRemovedServerEvent

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

Occurs after a server has been removed from the cluster.

public struct ClusterRemovedServerEvent
Inherited Members

Constructors

ClusterRemovedServerEvent(ServerId, string, TimeSpan)

Initializes a new instance of the ClusterRemovedServerEvent struct.

public ClusterRemovedServerEvent(ServerId serverId, string reason, TimeSpan duration)

Parameters

serverId ServerId

The server identifier.

reason string

The reason.

duration TimeSpan

The duration of time it took to remove the server.

Properties

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

Duration

Gets the duration of time it took to remove the server.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Reason

Gets the reason the server was removed.

public string Reason { get; }

Property Value

string

ServerId

Gets the server identifier.

public ServerId ServerId { get; }

Property Value

ServerId

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime