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