IServiceScopeFactory 介面

定義

建立 IServiceScope 執行個體的 Factory,用於在範圍內建立服務。

public interface class IServiceScopeFactory
public interface IServiceScopeFactory
type IServiceScopeFactory = interface
Public Interface IServiceScopeFactory

方法

CreateScope()

建立 IServiceScope,其中包含用來解析新建立範圍相依性的 IServiceProvider

擴充方法

CreateAsyncScope(IServiceScopeFactory)

建立可用來解析已設定範圍服務的新 AsyncServiceScope

適用於