Aracılığıyla paylaş


InterceptorAggregator<TInterceptor> Sınıf

Tanım

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

public abstract class InterceptorAggregator<TInterceptor> : Microsoft.EntityFrameworkCore.Diagnostics.IInterceptorAggregator where TInterceptor : class, IInterceptor
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>
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ığı açısından güvenli olması gerekmez.

Daha fazla bilgi ve örnekler için bkz. EF Core kesme dinleyicileri .

Oluşturucular

InterceptorAggregator<TInterceptor>()

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

Özellikler

InterceptorType

Kesme noktası türü.

Yöntemler

AggregateInterceptors(IReadOnlyList<IInterceptor>)

dahili hizmet sağlayıcısında DbContext veya üzerinde kayıtlı olanların tümünden tek IInterceptor bir /> sorununu çözer.

CreateChain(IEnumerable<TInterceptor>)

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

Şunlara uygulanır