Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for issue microsoft#9. Configured the awaiters in GetResponseCont…
…entAsync to not capture context (to prevent a deadlock reachable from GetResponseXML)
  • Loading branch information
anirudhsanthiar committed May 24, 2016
1 parent 35305e9 commit d3d14ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReportProvider.cs
Expand Up @@ -100,10 +100,10 @@ private async Task<Stream> GetResponseContentAsync(string serviceFullUrl)
{
try
{
HttpResponseMessage response = await client.GetAsync(serviceFullUrl);
HttpResponseMessage response = await client.GetAsync(serviceFullUrl).ConfigureAwait(false);
response.EnsureSuccessStatusCode();

Stream responseContent = await response.Content.ReadAsStreamAsync();
Stream responseContent = await response.Content.ReadAsStreamAsync().ConfigureAwait(false);

if (responseContent != null)
{
Expand Down

0 comments on commit d3d14ee

Please sign in to comment.