Exemplo n.º 1
0
 public Task <AsyncTaskResult> HandleAsync(GranteeStatisticsInfoChangedEvent evnt)
 {
     return(TryUpdateRecordAsync(connection =>
     {
         return connection.UpdateAsync(new
         {
             HelpCount = evnt.StatisticsInfo.Count,
             Goods = evnt.StatisticsInfo.Goods,
             Total = evnt.StatisticsInfo.Total,
             Version = evnt.Version
         }, new
         {
             Id = evnt.AggregateRootId,
             //Version = evnt.Version - 1
         }, ConfigSettings.GranteeTable);
     }));
 }
Exemplo n.º 2
0
 private void Handle(GranteeStatisticsInfoChangedEvent evnt)
 {
     _granteeStatisticsInfo = evnt.StatisticsInfo;
 }