Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.4.0-preview-602" />

 IResolutionScope

Represents a resolution scope.
using System; using System.Collections.Generic; namespace Stashbox { public interface IResolutionScope : IDependencyResolver, IServiceProvider, IDisposable { IResolutionScope ParentScope { get; } object Name { get; } TDisposable AddDisposableTracking<TDisposable>(TDisposable disposable); TService AddWithFinalizer<TService>(TService finalizable, Action<TService> finalizer); object GetOrAddScopedObject(int key, object sync, Func<IResolutionScope, object> factory); void InvalidateDelegateCache(); IEnumerable<object> GetActiveScopeNames(); void CheckRuntimeCircularDependencyBarrier(int key, Type type); void ResetRuntimeCircularDependencyBarrier(int key); } }