Share via


AsyncServiceScope(IServiceScope) 建構函式

定義

初始化 AsyncServiceScope 結構的新執行個體。 包裝 IServiceScope 的執行個體。

public:
 AsyncServiceScope(Microsoft::Extensions::DependencyInjection::IServiceScope ^ serviceScope);
public AsyncServiceScope (Microsoft.Extensions.DependencyInjection.IServiceScope serviceScope);
new Microsoft.Extensions.DependencyInjection.AsyncServiceScope : Microsoft.Extensions.DependencyInjection.IServiceScope -> Microsoft.Extensions.DependencyInjection.AsyncServiceScope
Public Sub New (serviceScope As IServiceScope)

參數

serviceScope
IServiceScope

要包裝的 IServiceScope 執行個體。

適用於