语言

IInterceptors.Aggregate<TInterceptor> 方法

定义

从在内部服务提供商中DbContext注册的所有注册者解析单个TInterceptor。

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

类型参数

TInterceptor

要解析的拦截器类型。

返回

TInterceptor

已解析的拦截器,可能是 null 未注册任何侦听器。

适用于