ConnectionPoolCheckingOutConnectionFailedEvent Constructor |
Namespace:
MongoDB.Driver.Core.Events
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public ConnectionPoolCheckingOutConnectionFailedEvent(
ServerId serverId,
Exception exception,
long? operationId,
TimeSpan duration,
ConnectionCheckOutFailedReason reason
)
Public Sub New (
serverId As ServerId,
exception As Exception,
operationId As Long?,
duration As TimeSpan,
reason As ConnectionCheckOutFailedReason
)
new :
serverId : ServerId *
exception : Exception *
operationId : Nullable<int64> *
duration : TimeSpan *
reason : ConnectionCheckOutFailedReason -> ConnectionPoolCheckingOutConnectionFailedEvent
Parameters
- serverId
- Type: MongoDB.Driver.Core.ServersServerId
The server identifier. - exception
- Type: SystemException
The exception. - operationId
- Type: SystemNullableInt64
The operation identifier. - duration
- Type: SystemTimeSpan
The duration of time it took trying to check out the connection. - reason
- Type: MongoDB.Driver.Core.EventsConnectionCheckOutFailedReason
The reason the checkout failed.
See Also