1 write to _descriptors
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
27_descriptors = new ServiceDescriptor[descriptors.Count];
14 references to _descriptors
Microsoft.Extensions.DependencyInjection (14)
ServiceLookup\CallSiteFactory.cs (14)
28descriptors.CopyTo(_descriptors, 0); 33internal ServiceDescriptor[] Descriptors => _descriptors; 37foreach (ServiceDescriptor descriptor in _descriptors) 321for (int i = _descriptors.Length - 1; i >= 0; i--) 323if (KeysMatch(cacheKey.ServiceKey, _descriptors[i].ServiceKey)) 325if (ShouldCreateExact(_descriptors[i].ServiceType, cacheKey.ServiceType)) 328ServiceIdentifier registrationKey = isAnyKeyLookup ? ServiceIdentifier.FromDescriptor(_descriptors[i]) : cacheKey; 330ServiceCallSite callSite = CreateExact(_descriptors[i], registrationKey, callSiteChain, slot); 338for (int i = _descriptors.Length - 1; i >= 0; i--) 340if (KeysMatch(cacheKey.ServiceKey, _descriptors[i].ServiceKey)) 342if (ShouldCreateOpenGeneric(_descriptors[i].ServiceType, cacheKey.ServiceType)) 345ServiceIdentifier registrationKey = isAnyKeyLookup ? ServiceIdentifier.FromDescriptor(_descriptors[i]) : cacheKey; 347if (CreateOpenGeneric(_descriptors[i], registrationKey, callSiteChain, slot, throwOnConstraintViolation: false) is { } callSite) 380keyedSlotAssignment = new Dictionary<ServiceIdentifier, int>(capacity: _descriptors.Length)