Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.7.1-preview-787" />

 FactoryLifetimeDescriptor

Represents a lifetime descriptor which applies to factory delegates.

protected abstract Expression ApplyLifetime(Func<IResolutionScope, IRequestContext, object> factory, ServiceRegistration serviceRegistration, ResolutionContext resolutionContext, Type resolveType)

Derived types are using this method to apply their lifetime to the instance creation.