Bahasa

InterceptorAggregator<TInterceptor> Kelas

Definisi

Kelas dasar abstrak untuk implementasi IInterceptorAggregator layanan.

[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

Jenis parameter

TInterceptor

Jenis pencegat.

Warisan
InterceptorAggregator<TInterceptor>
Atribut
Penerapan

Keterangan

Masa pakai layanan adalah Scoped dan beberapa pendaftaran diizinkan. Ini berarti bahwa setiap DbContext instans akan menggunakan serangkaian instans layanan ini sendiri. Implementasinya dapat bergantung pada layanan lain yang terdaftar dengan masa pakai apa pun. Implementasi tidak perlu aman utas.

Lihat Pencegat EF Core untuk informasi dan contoh selengkapnya.

Konstruktor

Nama Deskripsi
InterceptorAggregator<TInterceptor>()

Kelas dasar abstrak untuk implementasi IInterceptorAggregator layanan.

Properti

Nama Deskripsi
InterceptorType

Jenis pencegat.

Metode

Nama Deskripsi
AggregateInterceptors(IReadOnlyList<IInterceptor>)

Menyelesaikan satu IInterceptor /> dari semua yang terdaftar di DbContext atau di penyedia layanan internal.

CreateChain(IEnumerable<TInterceptor>)

Harus diimplementasikan oleh jenis pewarisan untuk membuat pencegat tunggal dari daftar yang diberikan.

Berlaku untuk