public ControlHub(ICurrencyPairRepository currencyPairRepository, ICurrencyPairUpdatePublisher currencyPairUpdatePublisher, IPriceFeed priceFeed) { _currencyPairRepository = currencyPairRepository; _currencyPairUpdatePublisher = currencyPairUpdatePublisher; _priceFeed = priceFeed; }
public MainViewModel( IPricePublisher pricePublisher, IPriceFeed priceFeed, ICurrencyPairRepository currencyPairRepository, Func<CurrencyPairInfo, ICurrencyPairViewModel> ccyViewModelFactory) { _pricePublisher = pricePublisher; _priceFeed = priceFeed; _currencyPairRepository = currencyPairRepository; _ccyViewModelFactory = ccyViewModelFactory; StartStopCommand = new DelegateCommand(StartStopServer); CurrencyPairs = new ObservableCollection<ICurrencyPairViewModel>(); ObserveThroughputs(); }
public MainViewModel( IPricePublisher pricePublisher, IPriceFeed priceFeed, ICurrencyPairRepository currencyPairRepository, Func <CurrencyPairInfo, ICurrencyPairViewModel> ccyViewModelFactory) { _pricePublisher = pricePublisher; _priceFeed = priceFeed; _currencyPairRepository = currencyPairRepository; _ccyViewModelFactory = ccyViewModelFactory; StartStopCommand = new DelegateCommand(StartStopServer); CurrencyPairs = new ObservableCollection <ICurrencyPairViewModel>(); ObserveThroughputs(); }