public Task <AsyncTaskResult> HandleAsync(AgreedRefundEvent evnt) { return(TryUpdateRecordAsync(connection => { return connection.UpdateAsync(new { Status = (int)OrderGoodsStatus.Closed, Version = evnt.Version, EventSequence = evnt.Sequence }, new { Id = evnt.AggregateRootId, //Version = evnt.Version - 1 }, ConfigSettings.OrderGoodsTable); })); }
private void Handle(AgreedRefundEvent evnt) { _status = OrderGoodsStatus.Closed; }