Stashbox by Peter Csajtai

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

 IRequestContext

public interface IRequestContext
Represents an information storage for resolution requests.
TInstance ExcludeFromTracking<TInstance>(TInstance value)

Marks an instance as non disposable, so the container will exclude it from dispose tracking.

object GetDependencyOverrideOrDefault(Type dependencyType)

Returns a dependency override for a given type.

TResult GetDependencyOverrideOrDefault<TResult>()

Returns a dependency override for a given type.

object[] GetOverrides()

Returns each dependency override passed to the resolution request.