1 write to CallSiteFactory
Microsoft.Extensions.DependencyInjection (1)
ServiceProvider.cs (1)
60CallSiteFactory = new CallSiteFactory(serviceDescriptors);
13 references to CallSiteFactory
Microsoft.Extensions.DependencyInjection (13)
DependencyInjectionEventSource.cs (1)
183foreach (ServiceDescriptor descriptor in provider.CallSiteFactory.Descriptors)
ServiceLookup\ServiceProviderEngineScope.cs (2)
234string debugText = $"ServiceDescriptors = {RootProvider.CallSiteFactory.Descriptors.Length}"; 255public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.RootProvider.CallSiteFactory.Descriptors);
ServiceProvider.cs (10)
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)); 182System.Diagnostics.Debug.Assert(result is null || CallSiteFactory.IsService(serviceIdentifier)); 195ServiceCallSite? callSite = CallSiteFactory.GetCallSite(descriptor, new CallSiteChain()); 209ServiceCallSite? callSite = CallSiteFactory.GetCallSite(serviceIdentifier, new CallSiteChain()); 282public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.Root.RootProvider.CallSiteFactory.Descriptors);