public override async Task HandleAsync(ExceptionEvent @event) { //log await Task.Factory.StartNew(() => { _controller.Logger.LogError(@event.ToString()); var ex = new NegativeErrorException(@event.EventId.ToString(), @event.ErrCode); throw ex; }); }
public override void Handle(ExceptionEvent @event) { //log _controller.Logger.LogError(@event.ToString()); var ex = new NegativeErrorException(@event.EventId.ToString(), @event.ErrCode); throw ex; }