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