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