1 write to Cache
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\ServiceCallSite.cs (1)
15Cache = cache;
18 references to Cache
Microsoft.Extensions.DependencyInjection (18)
CallSiteJsonFormatter.cs (1)
56childContext.WriteProperty("cache", callSite.Cache.Location);
ServiceLookup\CallSiteFactory.cs (2)
303cacheLocation = GetCommonCacheLocation(cacheLocation, callSite.Cache.Location); 350cacheLocation = GetCommonCacheLocation(cacheLocation, callSite.Cache.Location);
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\CallSiteVisitor.cs (1)
24switch (callSite.Cache.Location)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (4)
59if (callSite.Cache.Location == CallSiteResultCacheLocation.Scope) 64return _scopeResolverCache.GetOrAdd(callSite.Cache.Key, _buildTypeDelegate, callSite); 80if (callSite.Cache.Location == CallSiteResultCacheLocation.Scope) 230callSite.Cache.Key,
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (4)
74if (callSite.Cache.Location == CallSiteResultCacheLocation.Scope) 79return _scopeResolverCache.GetOrAdd(callSite.Cache.Key, _buildTypeDelegate, callSite); 326if (callSite.Cache.Location == CallSiteResultCacheLocation.Scope) 351AddCacheKey(context, callSite.Cache.Key);
ServiceProvider.cs (1)
216if (callSite.Cache.Location == CallSiteResultCacheLocation.Root)