IServiceScope
Defines a disposable service scope.
using System;
using System.Runtime.CompilerServices;
namespace Microsoft.Extensions.DependencyInjection
{
[System.Runtime.CompilerServices.NullableContext(1)]
public interface IServiceScope : IDisposable
{
IServiceProvider ServiceProvider { get; }
}
}