Skip to content

Commit

Permalink
Merge pull request #28 from nblumhardt/f-integratedauth
Browse files Browse the repository at this point in the history
Missing .ConfigureAwait(false)
  • Loading branch information
nblumhardt authored Jan 27, 2017
2 parents 1a12071 + 7c7e248 commit 0fc128e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Seq.Api/Api/ResourceGroups/UsersResourceGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ public async Task<SearchHistoryEntity> GetSearchHistoryAsync(UserEntity entity)

public async Task<UserEntity> LoginWindowsIntegratedAsync()
{
var providers = await GroupGetAsync<AuthProvidersPart>("AuthenticationProviders");
var providers = await GroupGetAsync<AuthProvidersPart>("AuthenticationProviders").ConfigureAwait(false);
var provider = providers.Providers.SingleOrDefault(p => p.Name == "Integrated Windows Authentication");
if (provider == null)
throw new SeqApiException("The Integrated Windows Authentication provider is not available.");
var response = await Client.HttpClient.GetAsync(provider.Url);
var response = await Client.HttpClient.GetAsync(provider.Url).ConfigureAwait(false);
response.EnsureSuccessStatusCode();
return await FindCurrentAsync();
return await FindCurrentAsync().ConfigureAwait(false);
}
}
}

0 comments on commit 0fc128e

Please sign in to comment.