Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.2.1" />

 Lifetimes

public static class Lifetimes
Contains all the built-in lifetime managers.
public static readonly LifetimeDescriptor PerRequest

Per resolution request lifetime.

public static readonly LifetimeDescriptor PerScopedRequest

Per scoped request lifetime, that re-uses the produced instance within a scoped service's resolution tree.

public static readonly LifetimeDescriptor Scoped

Scoped lifetime.

public static readonly LifetimeDescriptor Singleton

Singleton lifetime.

public static readonly LifetimeDescriptor Transient

Transient lifetime.

public static LifetimeDescriptor NamedScope(object name)

Produces a NamedScope lifetime.