AsyncServiceScope 结构  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
实现 IAsyncDisposable的 IServiceScope 实现。
public value class AsyncServiceScope : IAsyncDisposable, IDisposable, Microsoft::Extensions::DependencyInjection::IServiceScopepublic readonly struct AsyncServiceScope : IAsyncDisposable, IDisposable, Microsoft.Extensions.DependencyInjection.IServiceScopetype AsyncServiceScope = struct
    interface IServiceScope
    interface IDisposable
    interface IAsyncDisposablePublic Structure AsyncServiceScope
Implements IAsyncDisposable, IDisposable, IServiceScope- 继承
- 实现
构造函数
| AsyncServiceScope(IServiceScope) | 初始化 AsyncServiceScope 结构的新实例。 包装 IServiceScope的实例。 | 
属性
| ServiceProvider | 用于从范围解析依赖项的 IServiceProvider。 | 
方法
| Dispose() | 执行与释放、释放或重置非托管资源关联的应用程序定义任务。 | 
| DisposeAsync() | 以异步方式执行与释放、释放或重置非托管资源关联的应用程序定义任务。 | 
扩展方法
| ConfigureAwait(IAsyncDisposable, Boolean) | 配置如何执行从异步可释放项返回的任务的 await。 |