Stashbox by Peter Csajtai

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

 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 abstract string Name { get; }

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

protected LifetimeDescriptor()