LifetimeBase
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();
}
}