public void SimpleTest()
 {
     //var sd = new StringDownloader("http://www.chrylers.com/cherrytomato/versionhistory.xml", DisplayResult);
     var sd = new StringDownloader("http://localhost", DisplayResult);
     sd.Run();
     Thread.Sleep(10000);
     Debug.WriteLine("Test stopped.");
 }
 public StringDownloader(string url, StringDownloader.StringReceivedDelegate received)
 {
     this.url = url;
     this.received = received;
 }
Beispiel #3
0
        public static void DownloadStringAsync(string url, StringDownloader.StringReceivedDelegate stringReceived)
        {
            var sd = new StringDownloader(url, stringReceived);

            sd.Run();
        }