using Singularity.Expressions;

namespace Singularity
{
    /// <summary>
    /// Every time a instance is requested a new instance is returned.
    /// </summary>
    public sealed class Transient : ILifetime
    {
        /// <inheritdoc />
        public void ApplyLifetimeOnExpression(Scoped containerScope, ExpressionContext context)
        {
            //No caching for transients.
        }

        internal Transient() { }
    }
}