1 instantiation of CallSiteRuntimeResolver
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteRuntimeResolver.cs (1)
16public static CallSiteRuntimeResolver Instance { get; } = new();
14 references to CallSiteRuntimeResolver
Microsoft.Extensions.DependencyInjection (14)
ServiceLookup\CallSiteRuntimeResolver.cs (1)
16public static CallSiteRuntimeResolver Instance { get; } = new();
ServiceLookup\DynamicServiceProviderEngine.cs (1)
28var result = CallSiteRuntimeResolver.Instance.Resolve(callSite, scope);
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (3)
40CallSiteRuntimeResolver.Instance, 41typeof(CallSiteRuntimeResolver)); 98return Expression.Constant(CallSiteRuntimeResolver.Instance.Resolve(singletonCallSite, _rootScope));
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (5)
27private static readonly MethodInfo CallSiteRuntimeResolverResolveMethod = typeof(CallSiteRuntimeResolver).GetMethod( 28nameof(CallSiteRuntimeResolver.Resolve), BindingFlags.Public | BindingFlags.Instance)!; 30private static readonly MethodInfo CallSiteRuntimeResolverInstanceField = typeof(CallSiteRuntimeResolver).GetProperty( 31nameof(CallSiteRuntimeResolver.Instance), BindingFlags.Static | BindingFlags.Public | BindingFlags.Instance)!.GetMethod!; 173AddConstant(argument, CallSiteRuntimeResolver.Instance.Resolve(callSite, _rootScope));
ServiceLookup\RuntimeServiceProviderEngine.cs (1)
19return CallSiteRuntimeResolver.Instance.Resolve(callSite, scope);
ServiceLookup\ServiceLookupHelpers.cs (2)
26internal static readonly MethodInfo ResolveCallSiteAndScopeMethodInfo = typeof(CallSiteRuntimeResolver) 27.GetMethod(nameof(CallSiteRuntimeResolver.Resolve), LookupFlags)!;
ServiceProvider.cs (1)
218object? value = CallSiteRuntimeResolver.Instance.Resolve(callSite, Root);