public Task <AsyncTaskResult> HandleAsync(GoodsSellOutUpdatedEvent evnt) { return(TryUpdateRecordAsync(connection => { return connection.UpdateAsync(new { SellOut = evnt.FinallySellOut, Version = evnt.Version, EventSequence = evnt.Sequence }, new { Id = evnt.AggregateRootId, //Version = evnt.Version - 1 }, ConfigSettings.GoodsTable); })); }
private void Handle(GoodsSellOutUpdatedEvent evnt) { _info.SellOut = evnt.FinallySellOut; }