Table of Contents

Struct ClusterSelectingServerFailedEvent

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

Occurs when selecting a server fails.

public struct ClusterSelectingServerFailedEvent
Inherited Members

Constructors

ClusterSelectingServerFailedEvent(ClusterDescription, IServerSelector, Exception, long?, string)

Initializes a new instance of the ClusterSelectingServerFailedEvent struct.

public ClusterSelectingServerFailedEvent(ClusterDescription clusterDescription, IServerSelector serverSelector, Exception exception, long? operationId, string operationName)

Parameters

clusterDescription ClusterDescription

The cluster description.

serverSelector IServerSelector

The server selector.

exception Exception

The exception.

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

Exception

Gets the exception.

public Exception Exception { get; }

Property Value

Exception

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