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); })); }
private void Handle(ApplyRefundedEvent evnt) { _refoundApplyInfo = evnt.RefoundApplyInfo; _status = StoreOrderStatus.OnlyRefund; }