2 writes to Key
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\ResultCache.cs (2)
20
Key
= cacheKey;
40
Key
= new ServiceCacheKey(serviceIdentifier, slot);
9 references to Key
Microsoft.Extensions.DependencyInjection (9)
ServiceLookup\CallSiteRuntimeResolver.cs (2)
130
if (resolvedServices.TryGetValue(callSite.Cache.
Key
, out object? resolved))
141
resolvedServices.Add(callSite.Cache.
Key
, resolved);
ServiceLookup\CallSiteValidator.cs (3)
20
&& _scopedServices.TryGetValue(callSite.Cache.
Key
, out Type? scopedService)
44
if (!_scopedServices.TryGetValue(callSite.Cache.
Key
, out Type? firstScopedServiceInCallSiteTree))
50
_scopedServices[callSite.Cache.
Key
] = firstScopedServiceInCallSiteTree;
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (2)
64
return _scopeResolverCache.GetOrAdd(callSite.Cache.
Key
, _buildTypeDelegate, callSite);
230
callSite.Cache.
Key
,
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (2)
79
return _scopeResolverCache.GetOrAdd(callSite.Cache.
Key
, _buildTypeDelegate, callSite);
351
AddCacheKey(context, callSite.Cache.
Key
);