Пример #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);