8 references to FromServiceType
Microsoft.Extensions.DependencyInjection (8)
ServiceLookup\CallSiteFactory.cs (1)
602callSite ??= GetCallSite(ServiceIdentifier.FromServiceType(parameterType), callSiteChain);
ServiceLookup\ResultCache.cs (1)
13var cacheKey = new ServiceCacheKey(ServiceIdentifier.FromServiceType(serviceType), 0);
ServiceLookup\ServiceProviderEngineScope.cs (1)
50return RootProvider.GetService(ServiceIdentifier.FromServiceType(serviceType), this);
ServiceProvider.cs (5)
63CallSiteFactory.Add(ServiceIdentifier.FromServiceType(typeof(IServiceProvider)), new ServiceProviderCallSite()); 64CallSiteFactory.Add(ServiceIdentifier.FromServiceType(typeof(IServiceScopeFactory)), new ConstantCallSite(typeof(IServiceScopeFactory), Root)); 65CallSiteFactory.Add(ServiceIdentifier.FromServiceType(typeof(IServiceProviderIsService)), new ConstantCallSite(typeof(IServiceProviderIsService), CallSiteFactory)); 66CallSiteFactory.Add(ServiceIdentifier.FromServiceType(typeof(IServiceProviderIsKeyedService)), new ConstantCallSite(typeof(IServiceProviderIsKeyedService), CallSiteFactory)); 103public object? GetService(Type serviceType) => GetService(ServiceIdentifier.FromServiceType(serviceType), Root);