Stashbox by Peter Csajtai

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

 EmptyLifetime

using Stashbox.Registration; using Stashbox.Resolution; using System.Linq.Expressions; using System.Runtime.CompilerServices; namespace Stashbox.Lifetime { internal class EmptyLifetime : LifetimeDescriptor { [System.Runtime.CompilerServices.NullableContext(1)] [return: System.Runtime.CompilerServices.Nullable(2)] private protected override Expression BuildLifetimeAppliedExpression(ServiceRegistration serviceRegistration, ResolutionContext resolutionContext, TypeInformation typeInformation) { return null; } } }