Table of Contents

Struct ClusterAddedServerEvent

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

Occurs after a server is added to the cluster.

public struct ClusterAddedServerEvent
Inherited Members

Constructors

ClusterAddedServerEvent(ServerId, TimeSpan)

Initializes a new instance of the ClusterAddedServerEvent struct.

public ClusterAddedServerEvent(ServerId serverId, TimeSpan duration)

Parameters

serverId ServerId

The server identifier.

duration TimeSpan

The duration of time it took to add the server.

Properties

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

Duration

Gets the duration of time it took to add a server,

public TimeSpan Duration { get; }

Property Value

TimeSpan

ServerId

Gets the server identifier.

public ServerId ServerId { get; }

Property Value

ServerId

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime