public Task <AsyncTaskResult> HandleAsync(WithdrawStatisticInfoChangedEvent evnt) { return(TryUpdateRecordAsync(connection => { return connection.UpdateAsync(new { TodayWithdrawAmount = evnt.Info.TodayWithdrawAmount, WeekWithdrawAmount = evnt.Info.WeekWithdrawAmount, WithdrawTotalAmount = evnt.Info.WithdrawTotalAmount, LastWithdrawTime = evnt.Info.LastWithdrawTime, Version = evnt.Version, EventSequence = evnt.Sequence }, new { Id = evnt.AggregateRootId, //Version = evnt.Version - 1 }, ConfigSettings.WalletTable); })); }
private void Handle(WithdrawStatisticInfoChangedEvent evnt) { _withdrawStatisticInfo = evnt.Info; }