public Task <AsyncTaskResult> HandleAsync(ApplyReturnAndRefundedEvent evnt)
 {
     return(TryUpdateRecordAsync(connection =>
     {
         return connection.UpdateAsync(new
         {
             Reason = evnt.RefoundApplyInfo.Reason,
             RefoundAmount = evnt.RefoundApplyInfo.RefundAmount,
             Status = (int)StoreOrderStatus.ReturnAndRefund,
             Version = evnt.Version
         }, new
         {
             Id = evnt.AggregateRootId,
             //Version = evnt.Version - 1
         }, ConfigSettings.StoreOrderTable);
     }));
 }
Exemplo n.º 2
0
 private void Handle(ApplyReturnAndRefundedEvent evnt)
 {
     _refoundApplyInfo = evnt.RefoundApplyInfo;
     _status           = StoreOrderStatus.ReturnAndRefund;
 }