Stashbox by Peter Csajtai

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

 ResolutionBehavior

public enum ResolutionBehavior
Service resolution behavior.
Current = 2

Indicates that services should be resolved from current.

Default = 3

Indicates that services should be resolved from current and parent container.

Parent = 1

Indicates that services should be resolved from parent container (including indirect all ancestors) of the current container.