public Task <AsyncTaskResult> HandleAsync(ServiceFinishedEvent evnt)
 {
     return(_messagePublisher.PublishAsync(new ServiceFinishedMessage
                                           (
                                               evnt.AggregateRootId
                                           )));
 }
 public Task <AsyncTaskResult> HandleAsync(ServiceFinishedEvent 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);
     }));
 }
예제 #3
0
 private void Handle(ServiceFinishedEvent evnt)
 {
     _status = OrderGoodsStatus.Closed;
 }