Stashbox by Peter Csajtai

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

 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.