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