Constructor ClusterRemovedServerEvent

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Core.Events

Assembly

MongoDB.Driver.dll

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.