Table of Contents

Struct ClusterSelectedServerEvent

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

Occurs after a server is selected.

public struct ClusterSelectedServerEvent
Inherited Members

Constructors

ClusterSelectedServerEvent(ClusterDescription, IServerSelector, ServerDescription, TimeSpan, long?, string)

Initializes a new instance of the ClusterSelectedServerEvent struct.

public ClusterSelectedServerEvent(ClusterDescription clusterDescription, IServerSelector serverSelector, ServerDescription selectedServer, TimeSpan duration, long? operationId, string operationName)

Parameters

clusterDescription ClusterDescription

The cluster description.

serverSelector IServerSelector

The server selector.

selectedServer ServerDescription

The selected server.

duration TimeSpan

The duration of time it took to select the server.

operationId long?

The operation identifier.

operationName string

The operation name.

Properties

ClusterDescription

Gets the cluster description.

public ClusterDescription ClusterDescription { get; }

Property Value

ClusterDescription

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

Duration

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

public TimeSpan Duration { get; }

Property Value

TimeSpan

OperationId

Gets the operation identifier.

public long? OperationId { get; }

Property Value

long?

OperationName

Gets the operation name.

public string OperationName { get; }

Property Value

string

SelectedServer

Gets the selected server.

public ServerDescription SelectedServer { get; }

Property Value

ServerDescription

ServerSelector

Gets the server selector.

public IServerSelector ServerSelector { get; }

Property Value

IServerSelector

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime