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