Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="4.1.0-preview-680" />

 LifetimeValidationFailedException

Represents the exception the container throws when the lifetime validation is failed.
using System; using System.Runtime.Serialization; namespace Stashbox.Exceptions { [Serializable] public class LifetimeValidationFailedException : Exception { public Type Type { get; } public LifetimeValidationFailedException(Type type, string message) : base(message) { Type = type; } protected LifetimeValidationFailedException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }