InterceptorAggregator<TInterceptor> Class

Definition

Abstract base class for implementations of the IInterceptorAggregator service.

public abstract class InterceptorAggregator<TInterceptor> : Microsoft.EntityFrameworkCore.Diagnostics.IInterceptorAggregator where TInterceptor : class, IInterceptor
type InterceptorAggregator<'Interceptor (requires 'Interceptor : null and 'Interceptor :> IInterceptor)> = class
    interface IInterceptorAggregator
Public MustInherit Class InterceptorAggregator(Of TInterceptor)
Implements IInterceptorAggregator

Type Parameters

TInterceptor

The interceptor type.

Inheritance
InterceptorAggregator<TInterceptor>
Implements

Remarks

The service lifetime is Scoped and multiple registrations are allowed. This means that each DbContext instance will use its own set of instances of this service. The implementations may depend on other services registered with any lifetime. The implementations do not need to be thread-safe.

See EF Core interceptors for more information and examples.

Constructors

InterceptorAggregator<TInterceptor>()

Properties

InterceptorType

The interceptor type.

Methods

AggregateInterceptors(IReadOnlyList<IInterceptor>)

Resolves a single IInterceptor /> from all those registered on the DbContext or in the internal service provider.

CreateChain(IEnumerable<TInterceptor>)

Must be implemented by the inheriting type to create a single interceptor from the given list.

Applies to