Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.8.1-preview-793" />

 ContainerConfigurator

public class ContainerConfigurator
Represents a container configurator.

The container configuration.

Sets a callback delegate to call when the container configuration changes.

Enables or disables conventional resolution, which means the container treats the constructor/method parameter or member names as dependency names used by named resolution.

public ContainerConfigurator WithAutoMemberInjection(AutoMemberInjectionRules rule = 4, Func<MemberInfo, bool> filter = null, bool enabled = true)

Enables or disables the auto member-injection without annotation.

Sets the constructor selection rule used to determine which constructor should the container use for instantiation

Sets the default lifetime used when a service doesn't have a configured one.

Enables or disables the default value injection.

Enables or disables the tracking of disposable transient objects.

Sets an external expression tree compiler used by the container to compile the generated expressions.

public ContainerConfigurator WithLifetimeValidation(bool enabled = true)

Enables or disables the life-span and root resolution validation on the dependency tree.

Enables or disables the selection of named registrations when the resolution request is un-named but with the same type.

Enables or disables the re-building of singletons in child containers. It allows the child containers to effectively override singleton dependencies in the parent. This feature is not affecting the already built singleton instances in the parent.

Sets the actual behavior used when a new service is registered into the container. These options do not affect named registrations. See the RegistrationBehavior enum for available options.

Enables or disables the unknown type resolution.