DbConnectionInterceptor Class

Definition

Abstract base class for IDbConnectionInterceptor for use when implementing a subset of the interface methods.

public abstract class DbConnectionInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.IDbConnectionInterceptor, Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor
type DbConnectionInterceptor = class
    interface IDbConnectionInterceptor
    interface IInterceptor
Public MustInherit Class DbConnectionInterceptor
Implements IDbConnectionInterceptor, IInterceptor
Inheritance
DbConnectionInterceptor
Implements

Constructors

DbConnectionInterceptor()

Methods

ConnectionClosed(DbConnection, ConnectionEndEventData)

Called just after EF has called Close() in an async context.

ConnectionClosedAsync(DbConnection, ConnectionEndEventData)

Called just after EF has called CloseAsync().

ConnectionClosing(DbConnection, ConnectionEventData, InterceptionResult)

Called just before EF intends to call Close().

ConnectionClosingAsync(DbConnection, ConnectionEventData, InterceptionResult)

Called just before EF intends to call CloseAsync() in an async context.

ConnectionFailed(DbConnection, ConnectionErrorEventData)

Called when opening of a connection has failed with an exception.

ConnectionFailedAsync(DbConnection, ConnectionErrorEventData, CancellationToken)

Called when opening of a connection has failed with an exception.

ConnectionOpened(DbConnection, ConnectionEndEventData)

Called just after EF has called Open().

ConnectionOpenedAsync(DbConnection, ConnectionEndEventData, CancellationToken)

Called just after EF has called OpenAsync().

ConnectionOpening(DbConnection, ConnectionEventData, InterceptionResult)

Called just before EF intends to call Open().

ConnectionOpeningAsync(DbConnection, ConnectionEventData, InterceptionResult, CancellationToken)

Called just before EF intends to call OpenAsync().

Applies to