Skip to content

Commit

Permalink
chore: Async markers
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Aug 15, 2024
1 parent a4d083d commit 944ae1e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/SamplesApp/UITests.Shared/Msal/MsalLoginAndGraph.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ public MsalLoginAndGraph()
#endif
}

private async void SignIn(object sender, RoutedEventArgs e)
private
#if !DISABLE_GRAPH
async
#endif
void SignIn(object sender, RoutedEventArgs e)
{
#if !DISABLE_GRAPH
var result = await _app.AcquireTokenInteractive(SCOPES)
Expand All @@ -74,7 +78,11 @@ private async void SignIn(object sender, RoutedEventArgs e)
#endif
}

private async void LoadFromGraph(object sender, RoutedEventArgs e)
private
#if !DISABLE_GRAPH
async
#endif
void LoadFromGraph(object sender, RoutedEventArgs e)
{
#if !DISABLE_GRAPH
var httpClient = new HttpClient();
Expand Down

0 comments on commit 944ae1e

Please sign in to comment.