Langue

InterceptorAggregator<TInterceptor> Classe

Définition

Classe de base abstraite pour les implémentations du IInterceptorAggregator service.

[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

Paramètres de type

TInterceptor

Type d’intercepteur.

Héritage
InterceptorAggregator<TInterceptor>
Attributs
Implémente

Remarques

La durée de vie du service est Scoped et plusieurs inscriptions sont autorisées. Cela signifie que chaque DbContext instance utilisera son propre ensemble d’instances de ce service. Les implémentations peuvent dépendre d’autres services inscrits avec une durée de vie quelconque. Les implémentations n’ont pas besoin d’être thread-safe.

Pour plus d’informations et d’exemples, consultez les intercepteurs EF Core .

Constructeurs

Nom Description
InterceptorAggregator<TInterceptor>()

Classe de base abstraite pour les implémentations du IInterceptorAggregator service.

Propriétés

Nom Description
InterceptorType

Type d’intercepteur.

Méthodes

Nom Description
AggregateInterceptors(IReadOnlyList<IInterceptor>)

Résout un / IInterceptor> de tous ceux inscrits sur le DbContext ou dans le fournisseur de services interne.

CreateChain(IEnumerable<TInterceptor>)

Doit être implémenté par le type hérité pour créer un intercepteur unique à partir de la liste donnée.

S’applique à