public bool TryGetCacheEntryWithTypeName(string typeFullName, IReadOnlyCollection <string> includeDirectories, out IncludeCacheEntry cacheEntry) { cacheEntry = Cache.Values.FirstOrDefault(v => v.Types.Contains(typeFullName) && includeDirectories.Contains(v.BaseDirectory)); return(cacheEntry != null); }
public IncludeFindResult(IncludeCacheEntry includeCacheEntry) { IncludeCacheEntry = includeCacheEntry; }
public bool TryGetCacheEntry(string pathToInclude, out IncludeCacheEntry cacheEntry) { return(Cache.TryGetValue(pathToInclude, out cacheEntry)); }
public void AddEntry(IncludeCacheEntry cacheEntry) { cache.log.LogInformation($"Added the following entry from the include cache:{Environment.NewLine}" + $"{JsonConvert.SerializeObject(cacheEntry, Formatting.Indented)}"); cache.Cache.Add(cacheEntry.File, cacheEntry); }