Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.17.0" />

 IRequestContext

public interface IRequestContext
Represents an information storage for resolution requests.
using System; using System.Runtime.CompilerServices; namespace Stashbox.Resolution { [System.Runtime.CompilerServices.NullableContext(1)] public interface IRequestContext { [return: System.Runtime.CompilerServices.Nullable(2)] object GetDependencyOverrideOrDefault(Type dependencyType); [System.Runtime.CompilerServices.NullableContext(2)] TResult GetDependencyOverrideOrDefault<TResult>(); object[] GetOverrides(); TInstance ExcludeFromTracking<TInstance>(TInstance value) where TInstance : class; } }