Browse Source

Merge pull request #546 from linquize/webclient-async

Get Proxy Server for Web Client asynchronously
pull/569/merge
Daniel Grunwald 10 years ago
parent
commit
218e47e8b7
  1. 2
      ILSpy/AboutPage.cs

2
ILSpy/AboutPage.cs

@ -179,6 +179,7 @@ namespace ICSharpCode.ILSpy @@ -179,6 +179,7 @@ namespace ICSharpCode.ILSpy
static Task<AvailableVersionInfo> GetLatestVersionAsync()
{
var tcs = new TaskCompletionSource<AvailableVersionInfo>();
new Action(() => {
WebClient wc = new WebClient();
IWebProxy systemWebProxy = WebRequest.GetSystemWebProxy();
systemWebProxy.Credentials = CredentialCache.DefaultCredentials;
@ -203,6 +204,7 @@ namespace ICSharpCode.ILSpy @@ -203,6 +204,7 @@ namespace ICSharpCode.ILSpy
}
};
wc.DownloadDataAsync(UpdateUrl);
}).BeginInvoke(null, null);
return tcs.Task;
}

Loading…
Cancel
Save