1 write to RootProvider
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\ServiceProviderEngineScope.cs (1)
26
RootProvider
= provider;
13 references to RootProvider
Microsoft.Extensions.DependencyInjection (13)
ServiceLookup\CallSiteRuntimeResolver.cs (1)
82
ServiceProviderEngineScope serviceProviderEngine = context.Scope.
RootProvider
.Root;
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
74
DependencyInjectionEventSource.Log.ExpressionTreeGenerated(_rootScope.
RootProvider
, callSite.ServiceType, expression);
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (1)
124
DependencyInjectionEventSource.Log.DynamicMethodBuilt(_rootScope.
RootProvider
, callSite.ServiceType, ilGenerator.ILOffset);
ServiceLookup\ServiceProviderEngineScope.cs (9)
50
return
RootProvider
.GetService(ServiceIdentifier.FromServiceType(serviceType), this);
60
return
RootProvider
.GetKeyedService(serviceType, serviceKey, this);
70
return
RootProvider
.GetRequiredKeyedService(serviceType, serviceKey, this);
75
public IServiceScope CreateScope() =>
RootProvider
.CreateScope();
209
DependencyInjectionEventSource.Log.ScopeDisposed(
RootProvider
.GetHashCode(), ResolvedServices.Count, _disposables?.Count ?? 0);
218
if (IsRootScope && !
RootProvider
.IsDisposed())
223
RootProvider
.Dispose();
234
string debugText = $"ServiceDescriptors = {
RootProvider
.CallSiteFactory.Descriptors.Length}";
255
public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.
RootProvider
.CallSiteFactory.Descriptors);
ServiceProvider.cs (1)
282
public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.Root.
RootProvider
.CallSiteFactory.Descriptors);