We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asynchronous methods do not throw exceptions, you should await for a result instead.
private void MainForm_Load(object sender, EventArgs e) { // ... try { webClient.DownloadFileAsync(new Uri("https://github.com/PeterTh/gedosato/archive/master.zip"), "update.zip"); } catch (Exception ex) { // .. } }
Should be changed to:
private async Task MainForm_Load(object sender, EventArgs e) { // ... try { await webClient.DownloadFileAsync(new Uri("https://github.com/PeterTh/gedosato/archive/master.zip"), "update.zip"); } catch (Exception ex) { // .. } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Asynchronous methods do not throw exceptions, you should await for a result instead.
Should be changed to:
The text was updated successfully, but these errors were encountered: