Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.1.1-preview-548" />

 LifetimeDescriptor

public abstract class LifetimeDescriptor
Represents a lifetime descriptor.
protected abstract int LifeSpan { get; }

An indicator used to validate the lifetime configuration of the resolution tree. Services with longer life-span shouldn't contain dependencies with shorter ones.

protected string Name { get; }

The name of the lifetime, used only for diagnostic reasons.

protected LifetimeDescriptor()

Constructs the lifetime descriptor.