Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="2.9.0-preview-523" />

 LifetimeBase

public abstract class LifetimeBase : ILifetime
Represents a lifetime manager.
using Stashbox.BuildUp; using Stashbox.Registration; using Stashbox.Resolution; using System; using System.Linq.Expressions; namespace Stashbox.Lifetime { public abstract class LifetimeBase : ILifetime { public virtual Expression GetExpression(IContainerContext containerContext, IServiceRegistration serviceRegistration, IObjectBuilder objectBuilder, ResolutionContext resolutionContext, Type resolveType) { return objectBuilder.GetExpression(containerContext, serviceRegistration, resolutionContext, resolveType); } public abstract ILifetime Create(); } }