コード例 #1
0
ファイル: ControlHub.cs プロジェクト: GDownes/ReactiveTrader
 public ControlHub(ICurrencyPairRepository currencyPairRepository,
     ICurrencyPairUpdatePublisher currencyPairUpdatePublisher,
     IPriceFeed priceFeed)
 {
     _currencyPairRepository = currencyPairRepository;
     _currencyPairUpdatePublisher = currencyPairUpdatePublisher;
     _priceFeed = priceFeed;
 }
コード例 #2
0
 public ControlHub(ICurrencyPairRepository currencyPairRepository,
                   ICurrencyPairUpdatePublisher currencyPairUpdatePublisher,
                   IPriceFeed priceFeed)
 {
     _currencyPairRepository      = currencyPairRepository;
     _currencyPairUpdatePublisher = currencyPairUpdatePublisher;
     _priceFeed = priceFeed;
 }
コード例 #3
0
        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();
        }
コード例 #4
0
        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();
        }