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);
     }));
 }
Ejemplo n.º 2
0
 private void Handle(ServiceExpiredEvent evnt)
 {
     _status = OrderGoodsStatus.Expire;
 }