언어

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 인터셉터를 참조하세요.

생성자

속성 Description
InterceptorAggregator<TInterceptor>()

서비스의 구현에 대한 추상 기본 클래스입니다 IInterceptorAggregator .

속성

속성 Description
InterceptorType

인터셉터 형식입니다.

메서드

속성 Description
AggregateInterceptors(IReadOnlyList<IInterceptor>)

내부 서비스 공급자 또는 내부 서비스 공급자에 DbContext 등록된 모든 항목에서 단일 IInterceptor />을 확인합니다.

CreateChain(IEnumerable<TInterceptor>)

지정된 목록에서 단일 인터셉터를 만들려면 상속 형식에서 구현해야 합니다.

적용 대상