Exemplo n.º 1
0
 public void Handle(OrderPreparedForNextDispatch @event)
 {
     try
     {
         _notificationService.SendChangeDispatchCompanyPush(@event.SourceId);
     }
     catch (Exception e)
     {
         Log.Debug(e);
     }
 }
Exemplo n.º 2
0
        public void Handle(OrderPreparedForNextDispatch @event)
        {
            using (var context = _contextFactory.Invoke())
            {
                var details = context.Find <OrderStatusDetail>(@event.SourceId);
                details.Status = OrderStatus.TimedOut;
                details.NextDispatchCompanyName = @event.DispatchCompanyName;
                details.NextDispatchCompanyKey  = @event.DispatchCompanyKey;

                context.Save(details);
            }
        }