8 references to TryGetValue
aspire (3)
Mcp\Docs\DocsCache.cs (3)
39
if (_memoryCache.
TryGetValue
(cacheKey, out string? content))
81
if (_memoryCache.
TryGetValue
(cacheKey, out string? etag))
126
if (_memoryCache.
TryGetValue
(IndexCacheKey, out LlmsDocument[]? documents))
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.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))