我需要有关此代码的帮助
WebClient client = new WebClient();
string url = "http://someUrl.com"
DispatcherTimer timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromSeconds(Convert.ToDouble(18.0));
timer.Start();
timer.Tick += new EventHandler(delegate(object p, EventArgs a)
{
client.DownloadStringAsync(new Uri(url));
//throw:
//WebClient does not support concurrent I/O operations.
});
client.DownloadStringCompleted += (s, ea) =>
{
//Do something
};