Interface IInterceptorAggregator
- Namespace
- Microsoft.EntityFrameworkCore.Diagnostics
- Assembly
- Microsoft.EntityFrameworkCore.dll
A service to resolve a single IInterceptor from all those registered on the DbContext or in the internal service provider.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public interface IInterceptorAggregator
Remarks
Instances should be registered on the internal service provider as multiple IInterceptorAggregator interfaces.
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.
Properties
InterceptorType
The interceptor type.
Type InterceptorType { get; }
Property Value
Methods
AggregateInterceptors(IReadOnlyList<IInterceptor>)
Resolves a single IInterceptor from all those registered on the DbContext or in the internal service provider.
IInterceptor? AggregateInterceptors(IReadOnlyList<IInterceptor> interceptors)
Parameters
interceptors
IReadOnlyList<IInterceptor>The interceptors to combine.
Returns
- IInterceptor
The combined interceptor.