Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.8.2-preview-795" />

 Constants

static class Constants
using Stashbox.Resolution; using System; using System.Linq.Expressions; using System.Reflection; using System.Runtime.CompilerServices; namespace Stashbox.Utils { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] internal static class Constants { public static readonly ParameterExpression ResolutionScopeParameter = TypeCache<IResolutionScope>.Type.AsParameter("scope"); public static readonly ParameterExpression RequestContextParameter = TypeCache<IRequestContext>.Type.AsParameter("request"); public static readonly MethodInfo AddDisposalMethod = TypeCache<IResolutionScope>.Type.GetMethod("AddDisposableTracking"); public static readonly MethodInfo AddRequestContextAwareDisposalMethod = TypeCache<IResolutionScope>.Type.GetMethod("AddRequestContextAwareDisposableTracking"); public static readonly MethodInfo GetOrAddScopedObjectMethod = TypeCache<IResolutionScope>.Type.GetMethod("GetOrAddScopedObject"); public static readonly MethodInfo AddWithFinalizerMethod = TypeCache<IResolutionScope>.Type.GetMethod("AddWithFinalizer"); public static readonly MethodInfo AddWithAsyncInitializerMethod = TypeCache<IResolutionScope>.Type.GetMethod("AddWithAsyncInitializer"); public static readonly MethodInfo GetOrAddInstanceMethod = TypeCache<IInternalRequestContext>.Type.GetMethod("GetOrAddInstance"); public static readonly MethodInfo ResolveMethod = TypeCache<IDependencyResolver>.Type.GetMethod("Resolve", new Type[3] { TypeCache<Type>.Type, TypeCache<object>.Type, TypeCache<object[]>.Type }); public static readonly MethodInfo BeginScopeMethod = TypeCache<IDependencyResolver>.Type.GetMethod("BeginScope"); public const MethodImplOptions Inline = MethodImplOptions.AggressiveInlining; public const byte DelegatePlaceholder = 0; } }