/// <remarks> /// Please exuse the signature and exception handling of this /// method. This is not my normal style. /// </remarks> private bool DownloadFile(string address, out string html) { html = string.Empty; logger.WriteLine("Downloading address: " + address); try { using (IDownloaderClient downloaderClient = createClient()) { html = downloaderClient.DownloadString(address); } logger.WriteLine("Chars read: " + html.Length); logger.WriteLine("Beginning: " + html.Substring(0, 200)); return(true); } catch (System.Net.WebException webException) { logger.WriteLine("Something went wrong with the download: " + webException.Message); return(false); } }