8 references to TryGetValue
aspire (3)
Mcp\Docs\DocsCache.cs (3)
39if (_memoryCache.TryGetValue(cacheKey, out string? content)) 81if (_memoryCache.TryGetValue(cacheKey, out string? etag)) 126if (_memoryCache.TryGetValue(IndexCacheKey, out LlmsDocument[]? documents))
Microsoft.AspNetCore.Mvc.Razor (3)
Infrastructure\DefaultFileVersionProvider.cs (1)
54if (Cache.TryGetValue<string>(path, out var value) && value is not null)
RazorViewEngine.cs (2)
189if (!ViewLookupCache.TryGetValue(cacheKey, out ViewLocationCacheResult? cacheResult)) 262if (!ViewLookupCache.TryGetValue<ViewLocationCacheResult>(cacheKey, out var cacheResult) || cacheResult is null)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
CacheTagHelper.cs (1)
70if (MemoryCache.TryGetValue(cacheKey, out Task<IHtmlContent> cachedResult))
GlobbingUrlBuilder.cs (1)
107if (Cache.TryGetValue(cacheKey, out List<string> files))