Example #1
0
 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;
     });
 }
Example #2
0
        public override void Handle(ExceptionEvent @event)
        {
            //log
            _controller.Logger.LogError(@event.ToString());

            var ex = new NegativeErrorException(@event.EventId.ToString(), @event.ErrCode);

            throw ex;
        }