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 实例。

适用于