Stashbox by Peter Csajtai

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

 Lifetimes

public static class Lifetimes
Contains all the built-in lifetime managers.
using System.Runtime.CompilerServices; namespace Stashbox.Lifetime { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public static class Lifetimes { public static readonly LifetimeDescriptor Transient = new TransientLifetime(); public static readonly LifetimeDescriptor Singleton = new SingletonLifetime(); public static readonly LifetimeDescriptor Scoped = new ScopedLifetime(); public static readonly LifetimeDescriptor PerScopedRequest = new PerScopedRequestLifetime(); public static readonly LifetimeDescriptor PerRequest = new PerRequestLifetime(); internal static readonly LifetimeDescriptor Empty = new EmptyLifetime(); public static LifetimeDescriptor NamedScope(object name) { return new NamedScopeLifetime(name); } } }