Table of Contents

Constructor ClusterSelectedServerEvent

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

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.