Language

InterceptorAggregator<TInterceptor> クラス

定義

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

[System.Runtime.CompilerServices.Nullable(0)]
public abstract class InterceptorAggregator<TInterceptor> : Microsoft.EntityFrameworkCore.Diagnostics.IInterceptorAggregator where TInterceptor : class, IInterceptor
public abstract class InterceptorAggregator<TInterceptor> : Microsoft.EntityFrameworkCore.Diagnostics.IInterceptorAggregator where TInterceptor : class, IInterceptor
[<System.Runtime.CompilerServices.Nullable(0)>]
type InterceptorAggregator<'Interceptor (requires 'Interceptor : null and 'Interceptor :> IInterceptor)> = class
    interface IInterceptorAggregator
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 インターセプター を参照してください。

コンストラクター

Name 説明
InterceptorAggregator<TInterceptor>()

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

プロパティ

Name 説明
InterceptorType

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

メソッド

Name 説明
AggregateInterceptors(IReadOnlyList<IInterceptor>)

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

CreateChain(IEnumerable<TInterceptor>)

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

適用対象