Table of Contents

Interface IDataContextInterceptor

Namespace
LinqToDB.Interceptors
Assembly
linq2db.dll
public interface IDataContextInterceptor : IInterceptor
Extension Methods

Methods

OnClosed(DataContextEventData)

Event, triggered after IDataContext instance closed by Close() call.

void OnClosed(DataContextEventData eventData)

Parameters

eventData DataContextEventData

Additional data for event.

OnClosedAsync(DataContextEventData)

Event, triggered after IDataContext instance closed by CloseAsync() call.

Task OnClosedAsync(DataContextEventData eventData)

Parameters

eventData DataContextEventData

Additional data for event.

Returns

Task

OnClosing(DataContextEventData)

Event, triggered before IDataContext instance closed by Close() call.

void OnClosing(DataContextEventData eventData)

Parameters

eventData DataContextEventData

Additional data for event.

OnClosingAsync(DataContextEventData)

Event, triggered before IDataContext instance closed by CloseAsync() call.

Task OnClosingAsync(DataContextEventData eventData)

Parameters

eventData DataContextEventData

Additional data for event.

Returns

Task