internal void Handle(PairChanged @event) => _periodOperations.Process(@event);
private void OnPairChanged() { PairChanged?.Invoke(Pair); }
public Task Handle(PairChanged @event, CancellationToken cancellationToken) { _databaseRepository.UpdateOperation(PeriodId.From(@event.AggregateId), @event.OperationId, pair: @event.Pair); return(Task.CompletedTask); }
internal void Process(PairChanged @event) => _allOperations[@event.OperationId.Value].Pair = @event.Pair.Value;
private void OnPairChanged() { SetCurrencyLabels(); priceTextBox.Clear(); PairChanged?.Invoke(Pair); }