InterceptorAggregator<TInterceptor> クラス

定義

サービスの実装用の IInterceptorAggregator 抽象基本クラス。

public abstract class InterceptorAggregator<TInterceptor> : Microsoft.EntityFrameworkCore.Diagnostics.IInterceptorAggregator where TInterceptor : class, IInterceptor
type InterceptorAggregator<'Interceptor (requires 'Interceptor : null and 'Interceptor :> IInterceptor)> = class
    interface IInterceptorAggregator
Public MustInherit Class InterceptorAggregator(Of TInterceptor)
Implements IInterceptorAggregator

型パラメーター

TInterceptor

インターセプターの種類。

継承
InterceptorAggregator<TInterceptor>
実装

注釈

サービスの有効期間は であり Scoped 、複数の登録が許可されます。 つまり、各 DbContext インスタンスは、このサービスのインスタンスの独自のセットを使用します。 実装は、任意の有効期間で登録されている他のサービスに依存する場合があります。 実装はスレッド セーフである必要はありません。

詳細と例については、「 EF Core インターセプター 」を参照してください。

コンストラクター

InterceptorAggregator<TInterceptor>()

サービスの実装用の IInterceptorAggregator 抽象基本クラス。

プロパティ

InterceptorType

インターセプターの種類。

メソッド

AggregateInterceptors(IReadOnlyList<IInterceptor>)

または 内部サービス プロバイダーにDbContext登録されているすべてのユーザーから 1 つの IInterceptor /> を解決します。

CreateChain(IEnumerable<TInterceptor>)

指定されたリストから 1 つのインターセプターを作成するには、継承型によって実装される必要があります。

適用対象