public string DownloadString(string url, bool noCache = false) { var data = GetFromCache(url); if (data != null && !noCache) { return(data.StringData); } var webData = _webDownloader.DownloadString(url); if (webData != null) { UpdateCache(new CacheObject(url, webData)); } return(webData); }
public string DownloadString(string url, bool noCache = false) { return(_webDownloader.DownloadString(url, noCache)); }