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 } }
public Task OnErrorAsync(Exception exception, TEvent @event) => _eventHandler.OnErrorAsync(exception, @event);