Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.4.0-preview-755" />

 LifetimeValidationFailedException

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