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)
28
descriptors.CopyTo(
_descriptors
, 0);
33
internal ServiceDescriptor[] Descriptors =>
_descriptors
;
37
foreach (ServiceDescriptor descriptor in
_descriptors
)
321
for (int i =
_descriptors
.Length - 1; i >= 0; i--)
323
if (KeysMatch(cacheKey.ServiceKey,
_descriptors
[i].ServiceKey))
325
if (ShouldCreateExact(
_descriptors
[i].ServiceType, cacheKey.ServiceType))
328
ServiceIdentifier registrationKey = isAnyKeyLookup ? ServiceIdentifier.FromDescriptor(
_descriptors
[i]) : cacheKey;
330
ServiceCallSite callSite = CreateExact(
_descriptors
[i], registrationKey, callSiteChain, slot);
338
for (int i =
_descriptors
.Length - 1; i >= 0; i--)
340
if (KeysMatch(cacheKey.ServiceKey,
_descriptors
[i].ServiceKey))
342
if (ShouldCreateOpenGeneric(
_descriptors
[i].ServiceType, cacheKey.ServiceType))
345
ServiceIdentifier registrationKey = isAnyKeyLookup ? ServiceIdentifier.FromDescriptor(
_descriptors
[i]) : cacheKey;
347
if (CreateOpenGeneric(
_descriptors
[i], registrationKey, callSiteChain, slot, throwOnConstraintViolation: false) is { } callSite)
380
keyedSlotAssignment = new Dictionary<ServiceIdentifier, int>(capacity:
_descriptors
.Length)