public HtmlDocument CreateDocument(IWebProxy webProxy, Uri uri) { var reply = webProxy.DownloadString(uri); var htmlDoc = new HtmlDocument(); htmlDoc.LoadHtml(reply); return(htmlDoc); }