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); })); }
private void Handle(GranteeStatisticsInfoChangedEvent evnt) { _granteeStatisticsInfo = evnt.StatisticsInfo; }