6 references to ConstantCallSite
Microsoft.Extensions.DependencyInjection (6)
ServiceLookup\CallSiteFactory.cs (3)
418
callSite = new
ConstantCallSite
(descriptor.ServiceType, descriptor.GetImplementationInstance(), descriptor.ServiceKey);
628
callSite = new
ConstantCallSite
(parameterType, serviceIdentifier.ServiceKey);
648
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));