Example #1
0
 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);
     }));
 }
Example #2
0
 private void Handle(GoodsSellOutUpdatedEvent evnt)
 {
     _info.SellOut = evnt.FinallySellOut;
 }