Język

InterceptorAggregator<TInterceptor> Klasa

Definicja

Abstrakcyjna klasa bazowa na potrzeby implementacji IInterceptorAggregator usługi.

[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 przechwytywania.

Dziedziczenie
InterceptorAggregator<TInterceptor>
Atrybuty
Implementuje

Uwagi

Okres istnienia usługi jest Scoped dozwolony, a wiele rejestracji. Oznacza to, że każde DbContext wystąpienie będzie używać własnego zestawu wystąpień tej usługi. Implementacje mogą zależeć od innych usług zarejestrowanych w dowolnym okresie istnienia. Implementacje nie muszą być bezpieczne wątkowo.

Aby uzyskać więcej informacji i przykładów, zobacz przechwytywanie programu EF Core .

Konstruktory

Nazwisko Opis
InterceptorAggregator<TInterceptor>()

Abstrakcyjna klasa bazowa na potrzeby implementacji IInterceptorAggregator usługi.

Właściwości

Nazwisko Opis
InterceptorType

Typ przechwytywania.

Metody

Nazwisko Opis
AggregateInterceptors(IReadOnlyList<IInterceptor>)

Rozpoznaje pojedynczy /IInterceptor>ze wszystkich zarejestrowanych na DbContext lub w wewnętrznym dostawcy usług.

CreateChain(IEnumerable<TInterceptor>)

Musi zostać zaimplementowany przez typ dziedziczący w celu utworzenia pojedynczego przechwytnika z danej listy.

Dotyczy