8 references to FromServiceType
Microsoft.Extensions.DependencyInjection (8)
ServiceLookup\CallSiteFactory.cs (1)
602
callSite ??= GetCallSite(ServiceIdentifier.
FromServiceType
(parameterType), callSiteChain);
ServiceLookup\ResultCache.cs (1)
13
var cacheKey = new ServiceCacheKey(ServiceIdentifier.
FromServiceType
(serviceType), 0);
ServiceLookup\ServiceProviderEngineScope.cs (1)
50
return RootProvider.GetService(ServiceIdentifier.
FromServiceType
(serviceType), this);
ServiceProvider.cs (5)
63
CallSiteFactory.Add(ServiceIdentifier.
FromServiceType
(typeof(IServiceProvider)), new ServiceProviderCallSite());
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));
103
public object? GetService(Type serviceType) => GetService(ServiceIdentifier.
FromServiceType
(serviceType), Root);