Table of Contents

Struct ConnectionPoolCheckingOutConnectionFailedEvent

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

Occurs when a connection could not be checked out of the pool.

public struct ConnectionPoolCheckingOutConnectionFailedEvent
Inherited Members

Constructors

ConnectionPoolCheckingOutConnectionFailedEvent(ServerId, Exception, long?, TimeSpan, ConnectionCheckOutFailedReason)

Initializes a new instance of the ConnectionPoolCheckingOutConnectionFailedEvent struct.

public ConnectionPoolCheckingOutConnectionFailedEvent(ServerId serverId, Exception exception, long? operationId, TimeSpan duration, ConnectionCheckOutFailedReason reason)

Parameters

serverId ServerId

The server identifier.

exception Exception

The exception.

operationId long?

The operation identifier.

duration TimeSpan

The duration of time it took trying to check out the connection.

reason ConnectionCheckOutFailedReason

The reason the checkout failed.

Properties

ClusterId

Gets the cluster identifier.

public ClusterId ClusterId { get; }

Property Value

ClusterId

Duration

Gets the duration of time it took trying to check out the connection.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Exception

Gets the exception.

public Exception Exception { get; }

Property Value

Exception

OperationId

Gets the operation identifier.

public long? OperationId { get; }

Property Value

long?

Reason

Gets the reason the checkout failed.

public ConnectionCheckOutFailedReason Reason { get; }

Property Value

ConnectionCheckOutFailedReason

ServerId

Gets the server identifier.

public ServerId ServerId { get; }

Property Value

ServerId

Timestamp

Gets the timestamp.

public DateTime Timestamp { get; }

Property Value

DateTime