public CacheReadResult Read() { var file = cacheDirectory.GetFile(manifestFilename); if (file.Exists) { try { return(CacheReadResult.Success(CreateManifest(file))); } catch { return(CacheReadResult.Failed()); } } else { return(CacheReadResult.Failed()); } }
bool ReadCache() { Trace.Source.TraceInformation("CacheAwareBundleCollectionInitializer.ReadCache"); cacheReadResult = cache.Read(); return cacheReadResult.IsSuccess; }