public Task <AsyncTaskResult> HandleAsync(OfflineStoreStatisticInfoChangedEvent evnt) { return(TryUpdateRecordAsync(connection => { return connection.UpdateAsync(new { TodaySale = evnt.Info.TodaySale, TotalSale = evnt.Info.TotalSale, UpdatedOn = evnt.Info.UpdatedOn, Version = evnt.Version, EventSequence = evnt.Sequence }, new { Id = evnt.AggregateRootId, //Version = evnt.Version - 1 }, ConfigSettings.OfflineStoreTable); })); }
private void Handle(OfflineStoreStatisticInfoChangedEvent evnt) { _statisticInfo = evnt.Info; }