Share via


InterceptorAggregator<TInterceptor> Class

Definition

Abstract base class for implementations of the IInterceptorAggregator service.

[System.Runtime.CompilerServices.Nullable(0)]
public abstract class InterceptorAggregator<TInterceptor> : Microsoft.EntityFrameworkCore.Diagnostics.IInterceptorAggregator where TInterceptor : class, IInterceptor
public abstract class InterceptorAggregator<TInterceptor> : Microsoft.EntityFrameworkCore.Diagnostics.IInterceptorAggregator where TInterceptor : class, IInterceptor
[<System.Runtime.CompilerServices.Nullable(0)>]
type InterceptorAggregator<'Interceptor (requires 'Interceptor : null and 'Interceptor :> IInterceptor)> = class
    interface IInterceptorAggregator
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>
Attributes
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

Name Description
InterceptorAggregator<TInterceptor>()

Properties

Name Description
InterceptorType

The interceptor type.

Methods

Name Description
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