Class ConnectionOptionsConnectionInterceptor
- Namespace
- LinqToDB.Interceptors
- Assembly
- linq2db.dll
public sealed class ConnectionOptionsConnectionInterceptor : ConnectionInterceptor, IConnectionInterceptor, IInterceptor
- Inheritance
-
ConnectionOptionsConnectionInterceptor
- Implements
- Extension Methods
Methods
ConnectionOpened(ConnectionEventData, DbConnection)
Event, triggered after connection opened.
public override void ConnectionOpened(ConnectionEventData eventData, DbConnection connection)
Parameters
eventData
ConnectionEventDataAdditional data for event.
connection
DbConnectionConnection instance.
ConnectionOpenedAsync(ConnectionEventData, DbConnection, CancellationToken)
Event, triggered after connection opened asynchronously.
public override Task ConnectionOpenedAsync(ConnectionEventData eventData, DbConnection connection, CancellationToken cancellationToken)
Parameters
eventData
ConnectionEventDataAdditional data for event.
connection
DbConnectionConnection instance.
cancellationToken
CancellationTokenCancellation token.
Returns
ConnectionOpening(ConnectionEventData, DbConnection)
Event, triggered before connection open.
public override void ConnectionOpening(ConnectionEventData eventData, DbConnection connection)
Parameters
eventData
ConnectionEventDataAdditional data for event.
connection
DbConnectionConnection instance.
ConnectionOpeningAsync(ConnectionEventData, DbConnection, CancellationToken)
Event, triggered before asynchronous connection open.
public override Task ConnectionOpeningAsync(ConnectionEventData eventData, DbConnection connection, CancellationToken cancellationToken)
Parameters
eventData
ConnectionEventDataAdditional data for event.
connection
DbConnectionConnection instance.
cancellationToken
CancellationTokenCancellation token.