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