I have an async method:
public async Task ValidateRequestAsync(string userName, string password) { using (HttpClient client = new HttpClient(
For me it worked using .ConfigureAwait(false) setting in the async call. I have something like
return await Entities.SingleOrDefaultAsync(.....).ConfigureAwait(false);