示例#1
0
 private async Task TryReportError <TEvent>(Exception exception, IEventHandlerAsync <TEvent> handler, TEvent @event)
 {
     try
     {
         await handler.OnErrorAsync(exception, @event).ConfigureAwait(false);
     }
     catch
     {
         // yes, we mute exceptions here
     }
 }
示例#2
0
 public Task OnErrorAsync(Exception exception, TEvent @event) => _eventHandler.OnErrorAsync(exception, @event);