Table of Contents

Struct ClusterRemovingServerEvent

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

Occurs before a server is removed from the cluster.

public struct ClusterRemovingServerEvent
Inherited Members

Constructors

ClusterRemovingServerEvent(ServerId, string)

Initializes a new instance of the ClusterRemovingServerEvent struct.

public ClusterRemovingServerEvent(ServerId serverId, string reason)

Parameters

serverId ServerId

The server identifier.

reason string

The reason the server is being removed.

Properties

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

Reason

Gets the reason the server is being 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