Using ConfigureAwait(false) as much as possible
using (HttpContent contentRESULT = response.Content)
{
- return await this.ReadResponseAsync(contentRESULT);
+ return await this.ReadResponseAsync(contentRESULT).ConfigureAwait(false);
}
}
}
encoding = Encoding.UTF8;
}
- using (Stream stream = await content.ReadAsStreamAsync())
+ using (Stream stream = await content.ReadAsStreamAsync().ConfigureAwait(false))
using (StreamReader streamReader = new StreamReader(stream, encoding))
{
- return await streamReader.ReadToEndAsync();
+ return await streamReader.ReadToEndAsync().ConfigureAwait(false);
}
}
}