Disable Synchronization Context in the async calls
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Read flow of bytes
|
// Read flow of bytes
|
||||||
while ((readBytes = await stream.ReadAsync(buffer, offset, bufferSize)) > 0)
|
while ((readBytes = await stream.ReadAsync(buffer, offset, bufferSize).ConfigureAwait(false)) > 0)
|
||||||
{
|
{
|
||||||
length = length + readBytes;
|
length = length + readBytes;
|
||||||
offset = offset + readBytes;
|
offset = offset + readBytes;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Read flow of bytes
|
// Read flow of bytes
|
||||||
while ((readBytes = await stream.ReadAsync(buffer, offset, bufferSize)) > 0)
|
while ((readBytes = await stream.ReadAsync(buffer, offset, bufferSize).ConfigureAwait(false)) > 0)
|
||||||
{
|
{
|
||||||
length = length + readBytes;
|
length = length + readBytes;
|
||||||
offset = offset + readBytes;
|
offset = offset + readBytes;
|
||||||
|
|||||||
Reference in New Issue
Block a user