Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.5.0-preview-609" />

 IFluentCompositor<TImplementation, TConfigurator>

interface IFluentCompositor<TImplementation, TConfigurator>
TConfigurator InjectMember<TResult>(Expression<Func<TImplementation, TResult>> expression, object dependencyName = null)

Set a member (property / field) as a dependency should be filled by the container.

TConfigurator WithFactory(Func<TImplementation> singleFactory, bool isCompiledLambda = false)

Sets a parameter-less factory delegate for the registration.

TConfigurator WithFactory(Func<IDependencyResolver, TImplementation> containerFactory, bool isCompiledLambda = false)

Sets a container factory delegate for the registration.

TConfigurator WithFinalizer(Action<TImplementation> finalizer)

Sets a delegate which will be called when the container is being disposed.

TConfigurator WithInitializer(Action<TImplementation, IDependencyResolver> initializer)

Sets a delegate which will be called when the service is being constructed.