Dil

InterceptorAggregator<TInterceptor> Sınıf

Tanım

Hizmetin uygulamaları IInterceptorAggregator için soyut temel sınıf.

[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

Tür Parametreleri

TInterceptor

Kesme noktası türü.

Devralma
InterceptorAggregator<TInterceptor>
Özellikler
Uygulamalar

Açıklamalar

Hizmet ömrü ve Scoped birden çok kayda izin verilir. Bu, her DbContext örneğin bu hizmetin kendi örnek kümesini kullanacağı anlamına gelir. Uygulamalar, herhangi bir yaşam süresiyle kaydedilen diğer hizmetlere bağlı olabilir. Uygulamaların iş parçacığı güvenli olması gerekmez.

Daha fazla bilgi ve örnek için bkz. EF Core kesme çizgileri .

Oluşturucular

Veri Akışı Adı Description
InterceptorAggregator<TInterceptor>()

Hizmetin uygulamaları IInterceptorAggregator için soyut temel sınıf.

Özellikler

Veri Akışı Adı Description
InterceptorType

Kesme noktası türü.

Yöntemler

Veri Akışı Adı Description
AggregateInterceptors(IReadOnlyList<IInterceptor>)

veya iç hizmet sağlayıcısında DbContext kayıtlı olan tüm hizmetlerden tek IInterceptor bir />'yi çözümler.

CreateChain(IEnumerable<TInterceptor>)

Verilen listeden tek bir kesme noktası oluşturmak için devralan tür tarafından uygulanmalıdır.

Şunlara uygulanır