浏览代码

Refactor task await.

release/3.x.x
Christian Kratky 6 年前
父节点
当前提交
6fc9f12c34
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      Source/MQTTnet.AspnetCore/MqttConnectionContext.cs

+ 2
- 2
Source/MQTTnet.AspnetCore/MqttConnectionContext.cs 查看文件

@@ -62,7 +62,7 @@ namespace MQTTnet.AspNetCore
}
else
{
readResult = await readTask;
readResult = await readTask.ConfigureAwait(false);
}

var buffer = readResult.Buffer;
@@ -115,7 +115,7 @@ namespace MQTTnet.AspNetCore
await _writerSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
try
{
await output.WriteAsync(buffer, cancellationToken);
await output.WriteAsync(buffer, cancellationToken).ConfigureAwait(false);
}
finally
{


正在加载...
取消
保存