Ejemplo n.º 1
0
 public Task <AsyncTaskResult> HandleAsync(CommentStatisticInfoChangedEvent evnt)
 {
     return(TryUpdateRecordAsync(connection =>
     {
         return connection.UpdateAsync(new
         {
             Rate = evnt.StatisticInfo.Rate,
             RateCount = evnt.StatisticInfo.RateCount,
             QualityRate = evnt.StatisticInfo.QualityRate,
             PriceRate = evnt.StatisticInfo.PriceRate,
             ExpressRate = evnt.StatisticInfo.ExpressRate,
             DescribeRate = evnt.StatisticInfo.DescribeRate,
             Version = evnt.Version
         }, new
         {
             Id = evnt.AggregateRootId,
             //Version = evnt.Version - 1
         }, ConfigSettings.GoodsTable);
     }));
 }
Ejemplo n.º 2
0
 private void Handle(CommentStatisticInfoChangedEvent evnt)
 {
     _commentStatisticInfo = evnt.StatisticInfo;
 }