语言

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

适用于