Example #1
0
 public ControlHub(ICurrencyPairRepository currencyPairRepository,
     ICurrencyPairUpdatePublisher currencyPairUpdatePublisher,
     IPriceFeed priceFeed)
 {
     _currencyPairRepository = currencyPairRepository;
     _currencyPairUpdatePublisher = currencyPairUpdatePublisher;
     _priceFeed = priceFeed;
 }
Example #2
0
 public ControlHub(ICurrencyPairRepository currencyPairRepository,
                   ICurrencyPairUpdatePublisher currencyPairUpdatePublisher,
                   IPriceFeed priceFeed)
 {
     _currencyPairRepository      = currencyPairRepository;
     _currencyPairUpdatePublisher = currencyPairUpdatePublisher;
     _priceFeed = priceFeed;
 }
Example #3
0
 public CurrencyPairViewModel(CurrencyPairInfo currencyPairInfo, ICurrencyPairUpdatePublisher currencyPairUpdatePublisher)
 {
     _currencyPairInfo            = currencyPairInfo;
     _currencyPairUpdatePublisher = currencyPairUpdatePublisher;
     Symbol    = currencyPairInfo.CurrencyPair.Symbol;
     Available = currencyPairInfo.Enabled;
     Stale     = currencyPairInfo.Stale;
     Comment   = currencyPairInfo.Comment;
 }
 public CurrencyPairViewModel(CurrencyPairInfo currencyPairInfo, ICurrencyPairUpdatePublisher currencyPairUpdatePublisher)
 {
     _currencyPairInfo = currencyPairInfo;
     _currencyPairUpdatePublisher = currencyPairUpdatePublisher;
     Symbol = currencyPairInfo.CurrencyPair.Symbol;
     Available = currencyPairInfo.Enabled;
     Stale = currencyPairInfo.Stale;
     Comment = currencyPairInfo.Comment;
 }
        public CurrencyPairViewModel(CurrencyPairInfo currencyPairInfo, ICurrencyPairUpdatePublisher currencyPairUpdatePublisher)
        {
            _currencyPairInfo = currencyPairInfo;
            _currencyPairUpdatePublisher = currencyPairUpdatePublisher;
            Symbol = currencyPairInfo.CurrencyPair.Symbol;
            Available = currencyPairInfo.Enabled;
            Stale = currencyPairInfo.Stale;
            Comment = currencyPairInfo.Comment;

            _subscription.Disposable = this.ObserveProperty(p => p.Available)
                .Subscribe(SetAvailability);
        }
        public CurrencyPairViewModel(CurrencyPairInfo currencyPairInfo, ICurrencyPairUpdatePublisher currencyPairUpdatePublisher)
        {
            _currencyPairInfo            = currencyPairInfo;
            _currencyPairUpdatePublisher = currencyPairUpdatePublisher;
            Symbol    = currencyPairInfo.CurrencyPair.Symbol;
            Available = currencyPairInfo.Enabled;
            Stale     = currencyPairInfo.Stale;
            Comment   = currencyPairInfo.Comment;

            _subscription.Disposable = this.ObserveProperty(p => p.Available)
                                       .Subscribe(SetAvailability);
        }