11 references to TryGetValue
CookieSessionSample (1)
MemoryCacheTicketStore.cs (1)
46
_cache.
TryGetValue
(key, out ticket);
Microsoft.AspNetCore.Mvc.Razor (3)
Infrastructure\DefaultFileVersionProvider.cs (1)
54
if (Cache.
TryGetValue
<string>(path, out var value) && value is not null)
RazorViewEngine.cs (2)
189
if (!ViewLookupCache.
TryGetValue
(cacheKey, out ViewLocationCacheResult? cacheResult))
262
if (!ViewLookupCache.
TryGetValue
<ViewLocationCacheResult>(cacheKey, out var cacheResult) || cacheResult is null)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
RuntimeViewCompiler.cs (3)
91
if (_cache.
TryGetValue
<Task<CompiledViewDescriptor>>(relativePath, out var cachedResult) && cachedResult is not null)
97
if (_cache.
TryGetValue
(normalizedPath, out cachedResult) && cachedResult is not null)
119
if (_cache.
TryGetValue
<Task<CompiledViewDescriptor>>(normalizedPath, out var result) && result is not null)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
CacheTagHelper.cs (1)
70
if (MemoryCache.
TryGetValue
(cacheKey, out Task<IHtmlContent> cachedResult))
GlobbingUrlBuilder.cs (1)
107
if (Cache.
TryGetValue
(cacheKey, out List<string> files))
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
CacheTagHelperTest.cs (2)
522
var result = cache.
TryGetValue
(cacheTagKey, out Task<IHtmlContent> cachedValue);
530
result = cache.
TryGetValue
(cacheTagKey, out cachedValue);