Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.6.3-preview-639" />

 DecoratorConfigurator

Represents the fluent service decorator registration api.
public DecoratorConfigurator WithFactory(Func<IDependencyResolver, object> factory, bool isCompiledLambda = false)

Sets a container factory delegate for the registration.

public DecoratorConfigurator WithFactory(Func<object> factory, bool isCompiledLambda = false)

Sets a parameter-less factory delegate for the registration.