Stashbox by Peter Csajtai

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

 ResolutionBehavior

public enum ResolutionBehavior
Service resolution behavior.
Current = 2

Indicates that the current container (which initiated the resolution request) can participate in the service selection.

Default = 3

Indicates that both the parents and the current (which initiated the resolution request) container can participate in the resolution request's service selection.

Parent = 1

Indicates that parent containers (including indirect all ancestors) can participate in the resolution request's service selection.

Indicates that parent containers (including indirect all ancestors) can only provide dependencies for services that are already selected for resolution.