Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public string DownloadString(string url, bool noCache = false)
 {
     return(_webDownloader.DownloadString(url, noCache));
 }