Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.9.0-preview-803" />

 IResolutionScope

Represents a resolution scope.
using Stashbox.Resolution; using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; namespace Stashbox { [System.Runtime.CompilerServices.NullableContext(1)] public interface IResolutionScope : IDependencyResolver, IServiceProvider, IAsyncDisposable, IDisposable { [System.Runtime.CompilerServices.Nullable(2)] IResolutionScope ParentScope { [System.Runtime.CompilerServices.NullableContext(2)] get; } [System.Runtime.CompilerServices.Nullable(2)] object Name { [System.Runtime.CompilerServices.NullableContext(2)] get; } object AddDisposableTracking(object disposable); object AddRequestContextAwareDisposableTracking(object disposable, IRequestContext requestContext); object AddWithFinalizer(object finalizable, Action<object> finalizer); object AddWithAsyncInitializer(object initializable, Func<object, IDependencyResolver, CancellationToken, Task> initializer); object GetOrAddScopedObject(int key, Func<IResolutionScope, IRequestContext, object> factory, IRequestContext requestContext, Type serviceType); void InvalidateDelegateCache(); IEnumerable<object> GetActiveScopeNames(); } }