Table of Contents

Class ConnectionInterceptor

Namespace
LinqToDB.Interceptors
Assembly
linq2db.dll
public abstract class ConnectionInterceptor : IConnectionInterceptor, IInterceptor
Inheritance
ConnectionInterceptor
Implements
Derived
Extension Methods

Methods

ConnectionOpened(ConnectionEventData, DbConnection)

Event, triggered after connection opened.

public virtual void ConnectionOpened(ConnectionEventData eventData, DbConnection connection)

Parameters

eventData ConnectionEventData

Additional data for event.

connection DbConnection

Connection instance.

ConnectionOpenedAsync(ConnectionEventData, DbConnection, CancellationToken)

Event, triggered after connection opened asynchronously.

public virtual Task ConnectionOpenedAsync(ConnectionEventData eventData, DbConnection connection, CancellationToken cancellationToken)

Parameters

eventData ConnectionEventData

Additional data for event.

connection DbConnection

Connection instance.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

ConnectionOpening(ConnectionEventData, DbConnection)

Event, triggered before connection open.

public virtual void ConnectionOpening(ConnectionEventData eventData, DbConnection connection)

Parameters

eventData ConnectionEventData

Additional data for event.

connection DbConnection

Connection instance.

ConnectionOpeningAsync(ConnectionEventData, DbConnection, CancellationToken)

Event, triggered before asynchronous connection open.

public virtual Task ConnectionOpeningAsync(ConnectionEventData eventData, DbConnection connection, CancellationToken cancellationToken)

Parameters

eventData ConnectionEventData

Additional data for event.

connection DbConnection

Connection instance.

cancellationToken CancellationToken

Cancellation token.

Returns

Task