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