Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.1.0-preview-540" />

 LifetimeValidationFailedException

Represents the exception the container throws when the lifetime validation is failed.
using System; namespace Stashbox.Exceptions { public class LifetimeValidationFailedException : ExceptionBaseException { public LifetimeValidationFailedException(Type type, string message, Exception innerException = null) : base(type, message + Environment.NewLine + "If you want to disable this error then use the following container configuration: 'new StashboxContainer(c => c.DisableLifetimeValidation())'.", innerException) { } } }