語言

IInterceptors 介面

定義

一種服務,能從所有註冊在DbContext內部服務提供者或服務提供者中解決IInterceptor的單一問題。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

public interface IInterceptors
type IInterceptors = interface
Public Interface IInterceptors

備註

服役期間為 Scoped。 這表示每個 DbContext 實例都會使用自己的服務實例。 實作方式可能取決於其他註冊於任何生命週期的服務。 實作不需要執行緒安全。

更多資訊與範例請參閱 EF Core 攔截器 。

方法

名稱 Description
Aggregate<TInterceptor>()

從所有註冊於DbContext內部服務提供者或服務提供者的帳戶中解決一個TInterceptor。

適用於