Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.2.8-preview-596" />

 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.