Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.0.1-preview-721" />

 LifetimeDescriptor

public abstract class LifetimeDescriptor
Represents a lifetime descriptor.
protected virtual 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.