1 write to Root
Microsoft.Extensions.DependencyInjection (1)
ServiceProvider.cs (1)
55Root = new ServiceProviderEngineScope(this, isRootScope: true);
16 references to Root
Microsoft.Extensions.DependencyInjection (16)
ServiceLookup\CallSiteRuntimeResolver.cs (1)
82ServiceProviderEngineScope serviceProviderEngine = context.Scope.RootProvider.Root;
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
51_rootScope = serviceProvider.Root;
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (1)
61_rootScope = serviceProvider.Root;
ServiceProvider.cs (13)
64CallSiteFactory.Add(ServiceIdentifier.FromServiceType(typeof(IServiceScopeFactory)), new ConstantCallSite(typeof(IServiceScopeFactory), Root)); 103public object? GetService(Type serviceType) => GetService(ServiceIdentifier.FromServiceType(serviceType), Root); 112=> GetKeyedService(serviceType, serviceKey, Root); 125=> GetRequiredKeyedService(serviceType, serviceKey, Root); 143Root.Dispose(); 150return Root.DisposeAsync(); 168_callSiteValidator?.ValidateResolution(callSite, scope, Root); 218object? value = CallSiteRuntimeResolver.Instance.Resolve(callSite, Root); 271private string DebuggerToString() => Root.DebuggerToString(); 282public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.Root.RootProvider.CallSiteFactory.Descriptors); 283public List<object> Disposables => new List<object>(_serviceProvider.Root.Disposables); 284public bool Disposed => _serviceProvider.Root.Disposed; 285public bool IsScope => !_serviceProvider.Root.IsRootScope;