Dela via


IInterceptors.Aggregate<TInterceptor> Method

Definition

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

TInterceptor

The resolved interceptor, which may be null if none are registered.

Applies to