IInterceptors.Aggregate<TInterceptor> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resolves a single TInterceptor from all those registered on
the DbContext or in the internal service provider.
public TInterceptor? Aggregate<TInterceptor>() where TInterceptor : class, Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor;
public TInterceptor Aggregate<TInterceptor>() where TInterceptor : class, Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor;
abstract member Aggregate : unit -> 'Interceptor (requires 'Interceptor : null and 'Interceptor :> Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor)
Public Function Aggregate(Of TInterceptor As {Class, IInterceptor}) () As TInterceptor
Type Parameters
- TInterceptor
The interceptor type to resolve.
Returns
The resolved interceptor, which may be null if none are registered.