Table of Contents

Constructor ConnectionPoolCheckingOutConnectionFailedEvent

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

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.