Struct ConnectionPoolCheckingOutConnectionFailedEvent
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
ServerIdThe server identifier.
exception
ExceptionThe exception.
operationId
long?The operation identifier.
duration
TimeSpanThe duration of time it took trying to check out the connection.
reason
ConnectionCheckOutFailedReasonThe reason the checkout failed.
Properties
ClusterId
Gets the cluster identifier.
public ClusterId ClusterId { get; }
Property Value
Duration
Gets the duration of time it took trying to check out the connection.
public TimeSpan Duration { get; }
Property Value
Exception
Gets the exception.
public Exception Exception { get; }
Property Value
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
ServerId
Gets the server identifier.
public ServerId ServerId { get; }
Property Value
Timestamp
Gets the timestamp.
public DateTime Timestamp { get; }