Jazyk

InterceptorAggregator<TInterceptor> Třída

Definice

Abstraktní základní třída pro implementace IInterceptorAggregator služby.

[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

Parametry typu

TInterceptor

Typ průsečíku.

Dědičnost
InterceptorAggregator<TInterceptor>
Atributy
Implementuje

Poznámky

Životnost služby je Scoped a je povoleno více registrací. To znamená, že každá DbContext instance bude používat vlastní sadu instancí této služby. Implementace můžou záviset na jiných službách zaregistrovaných v jakékoli době života. Implementace nemusí být bezpečné pro přístup z více vláken.

Další informace a příklady najdete v tématu zachytávání EF Core .

Konstruktory

Název Description
InterceptorAggregator<TInterceptor>()

Abstraktní základní třída pro implementace IInterceptorAggregator služby.

Vlastnosti

Název Description
InterceptorType

Typ průsečíku.

Metody

Název Description
AggregateInterceptors(IReadOnlyList<IInterceptor>)

Vyřeší jednu IInterceptor /> ze všech těch, které jsou zaregistrované na interním DbContext poskytovateli služeb nebo v interním poskytovateli služeb.

CreateChain(IEnumerable<TInterceptor>)

Musí být implementováno zděděný typ pro vytvoření jednoho průsečíku z daného seznamu.

Platí pro