瀏覽代碼

add determines whether the query is null.

undefined
Savorboard 7 年之前
父節點
當前提交
2e81f2bcdf
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      src/DotNetCore.CAP/IQueueExecutor.Subscribe.cs

+ 7
- 0
src/DotNetCore.CAP/IQueueExecutor.Subscribe.cs 查看文件

@@ -32,6 +32,13 @@ namespace DotNetCore.CAP
public async Task<OperateResult> ExecuteAsync(IStorageConnection connection, IFetchedMessage fetched)
{
var message = await connection.GetReceivedMessageAsync(fetched.MessageId);

if (message == null)
{
_logger.LogError($"Can not find mesage at cap received message table, message id:{fetched.MessageId} !!!");
return OperateResult.Failed();
}

try
{
var sp = Stopwatch.StartNew();


Loading…
取消
儲存