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