Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: David Pine <[email protected]>
  • Loading branch information
adegeo and IEvangelist authored Oct 10, 2023
1 parent f716ff8 commit f1b9ef3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SDKSamples
{

/// <summary>
/// Interaction logic for App.xaml
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private async void FetchButton_Click(object sender, RoutedEventArgs e)
((Storyboard)Resources["HideWeatherImageStoryboard"]).Begin(this);

// Asynchronously fetch the weather forecast on a different thread and pause this code.
string weather = await Task.Run(FetchWeatherFromServer);
string weather = await FetchWeatherFromServerAsync();

// After async data returns, process it...
// Set the weather image
Expand All @@ -44,7 +44,7 @@ private async void FetchButton_Click(object sender, RoutedEventArgs e)
//</button>

//<fetch_weather>
private async Task<string> FetchWeatherFromServer()
private async Task<string> FetchWeatherFromServerAsync()
{
// Simulate the delay from network access
await Task.Delay(TimeSpan.FromSeconds(4));
Expand Down

0 comments on commit f1b9ef3

Please sign in to comment.