<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.1" />

Microsoft.Extensions.DependencyInjection.AsyncServiceScope

An IServiceScope implementation that implements IAsyncDisposable.
namespace Microsoft.Extensions.DependencyInjection { public readonly struct AsyncServiceScope : IServiceScope, IDisposable, IAsyncDisposable { public IServiceProvider ServiceProvider { get; } public AsyncServiceScope(IServiceScope serviceScope); public void Dispose(); public ValueTask DisposeAsync(); } }