public Task <AsyncTaskResult> HandleAsync(ThirdCurrencyMaxImportAmountChangedEvent evnt) { return(TryUpdateRecordAsync(connection => { return connection.UpdateAsync(new { MaxImportAmount = evnt.FinallyAmount, Version = evnt.Version, EventSequence = evnt.Sequence }, new { Id = evnt.AggregateRootId, //Version = evnt.Version - 1 }, ConfigSettings.ThirdCurrencyTable); })); }
private void Handle(ThirdCurrencyMaxImportAmountChangedEvent evnt) { _maxImportAmount = evnt.FinallyAmount; }