Table of Contents

Struct ServerOpenedEvent

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

Occurs after a server is opened.

public struct ServerOpenedEvent
Inherited Members

Constructors

ServerOpenedEvent(ServerId, ServerSettings, TimeSpan)

Initializes a new instance of the ServerOpenedEvent struct.

public ServerOpenedEvent(ServerId serverId, ServerSettings serverSettings, TimeSpan duration)

Parameters

serverId ServerId

The server identifier.

serverSettings ServerSettings

The server settings.

duration TimeSpan

The duration of time it took to open the server.

Properties

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

Duration

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

public TimeSpan Duration { get; }

Property Value

TimeSpan

ServerId

Gets the server identifier.

public ServerId ServerId { get; }

Property Value

ServerId

ServerSettings

Gets the server settings.

public ServerSettings ServerSettings { get; }

Property Value

ServerSettings

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime