Table of Contents

Struct ClusterSelectingServerEvent

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

Occurs before a server is selected.

public struct ClusterSelectingServerEvent
Inherited Members

Constructors

ClusterSelectingServerEvent(ClusterDescription, IServerSelector, long?, string)

Initializes a new instance of the ClusterSelectingServerEvent struct.

public ClusterSelectingServerEvent(ClusterDescription clusterDescription, IServerSelector serverSelector, long? operationId, string operationName)

Parameters

clusterDescription ClusterDescription

The cluster description.

serverSelector IServerSelector

The server selector.

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

OperationId

Gets the operation identifier.

public long? OperationId { get; }

Property Value

long?

OperationName

Gets the operation name.

public string OperationName { get; }

Property Value

string

ServerSelector

Gets the server selector.

public IServerSelector ServerSelector { get; }

Property Value

IServerSelector

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime