瀏覽代碼

Merge branch 'master' of https://github.com/dotnetcore/CAP

master
Savorboard 3 年之前
父節點
當前提交
6111221095
共有 1 個檔案被更改,包括 9 行新增1 行删除
  1. +9
    -1
      src/DotNetCore.CAP/Processor/IDispatcher.Default.cs

+ 9
- 1
src/DotNetCore.CAP/Processor/IDispatcher.Default.cs 查看文件

@@ -98,7 +98,15 @@ namespace DotNetCore.CAP.Processor
{
while (_receivedChannel.Reader.TryRead(out var message))
{
await _executor.DispatchAsync(message.Item1, message.Item2, _cts.Token);
try
{
await _executor.DispatchAsync(message.Item1, message.Item2, _cts.Token);
}
catch (Exception e)
{
_logger.LogError(e,
$"An exception occurred when invoke subscriber. MessageId:{message.Item1.DbId}");
}
}
}
}


Loading…
取消
儲存