25 references to CallSiteResultCacheLocation
Microsoft.Extensions.DependencyInjection (25)
ServiceLookup\CallSiteFactory.cs (9)
282CallSiteResultCacheLocation cacheLocation = CallSiteResultCacheLocation.Root; 354ResultCache resultCache = (cacheLocation == CallSiteResultCacheLocation.Scope || cacheLocation == CallSiteResultCacheLocation.Root) 356: new ResultCache(CallSiteResultCacheLocation.None, callSiteKey); 365private static CallSiteResultCacheLocation GetCommonCacheLocation(CallSiteResultCacheLocation locationA, CallSiteResultCacheLocation locationB) 367return (CallSiteResultCacheLocation)Math.Max((int)locationA, (int)locationB);
ServiceLookup\CallSiteVisitor.cs (4)
26case CallSiteResultCacheLocation.Root: 28case CallSiteResultCacheLocation.Scope: 30case CallSiteResultCacheLocation.Dispose: 32case CallSiteResultCacheLocation.None:
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (2)
59if (callSite.Cache.Location == CallSiteResultCacheLocation.Scope) 80if (callSite.Cache.Location == CallSiteResultCacheLocation.Scope)
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (2)
74if (callSite.Cache.Location == CallSiteResultCacheLocation.Scope) 326if (callSite.Cache.Location == CallSiteResultCacheLocation.Scope)
ServiceLookup\ResultCache.cs (7)
14return new ResultCache(CallSiteResultCacheLocation.None, cacheKey); 17internal ResultCache(CallSiteResultCacheLocation lifetime, ServiceCacheKey cacheKey) 28Location = CallSiteResultCacheLocation.Root; 31Location = CallSiteResultCacheLocation.Scope; 34Location = CallSiteResultCacheLocation.Dispose; 37Location = CallSiteResultCacheLocation.None; 43public CallSiteResultCacheLocation Location { get; set; }
ServiceProvider.cs (1)
216if (callSite.Cache.Location == CallSiteResultCacheLocation.Root)