6 instantiations of ConstantCallSite
Microsoft.Extensions.DependencyInjection (6)
ServiceLookup\CallSiteFactory.cs (3)
384
callSite = new
ConstantCallSite
(descriptor.ServiceType, descriptor.GetImplementationInstance());
588
callSite = new
ConstantCallSite
(parameterType, serviceIdentifier.ServiceKey);
607
callSite = new
ConstantCallSite
(parameterType, defaultValue);
ServiceProvider.cs (3)
64
CallSiteFactory.Add(ServiceIdentifier.FromServiceType(typeof(IServiceScopeFactory)), new
ConstantCallSite
(typeof(IServiceScopeFactory), Root));
65
CallSiteFactory.Add(ServiceIdentifier.FromServiceType(typeof(IServiceProviderIsService)), new
ConstantCallSite
(typeof(IServiceProviderIsService), CallSiteFactory));
66
CallSiteFactory.Add(ServiceIdentifier.FromServiceType(typeof(IServiceProviderIsKeyedService)), new
ConstantCallSite
(typeof(IServiceProviderIsKeyedService), CallSiteFactory));
7 references to ConstantCallSite
Microsoft.Extensions.DependencyInjection (7)
CallSiteJsonFormatter.cs (1)
72
protected override object? VisitConstant(
ConstantCallSite
constantCallSite, CallSiteFormatterContext argument)
ServiceLookup\CallSiteRuntimeResolver.cs (1)
153
protected override object? VisitConstant(
ConstantCallSite
constantCallSite, RuntimeResolverContext context)
ServiceLookup\CallSiteValidator.cs (1)
108
protected override Type? VisitConstant(
ConstantCallSite
constantCallSite, CallSiteValidatorState state) => null;
ServiceLookup\CallSiteVisitor.cs (2)
50
return VisitConstant((
ConstantCallSite
)callSite, argument);
80
protected abstract TResult VisitConstant(
ConstantCallSite
constantCallSite, TArgument argument);
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
101
protected override Expression VisitConstant(
ConstantCallSite
constantCallSite, object? context)
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (1)
197
protected override object? VisitConstant(
ConstantCallSite
constantCallSite, ILEmitResolverBuilderContext argument)