IServiceScopeFactory 介面

定義

建立 IServiceScope 執行個體的 Factory,用於在範圍內建立服務。A factory for creating instances of IServiceScope, which is used to create services within a scope.

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

方法

CreateScope()

建立 IServiceScope,其中包含用來解析新建立範圍相依性的 IServiceProviderCreate an IServiceScope which contains an IServiceProvider used to resolve dependencies from a newly created scope.

適用於