Пример #1
0
        public SimService(
            ISimBaseInstrumentSettingRepository settings,
            ILogFactory logFactory,
            IOrderBookProvider orderBookProvider,
            ITickPriceProvider tickPriceProvider,
            ITickPriceStore tickPriceStore,
            IExchangeCommissionSettingRepository commissionSettingRepository)
        {
            _settings                    = settings;
            _logFactory                  = logFactory;
            _orderBookProvider           = orderBookProvider;
            _tickPriceProvider           = tickPriceProvider;
            _tickPriceStore              = tickPriceStore;
            _commissionSettingRepository = commissionSettingRepository;
            _log = _logFactory.CreateLog(this);

            _timerTrigger = new TimerTrigger(nameof(SimService), TimeSpan.FromMilliseconds(500), _logFactory, DoTime);
        }
 public SettingsController(ISimBaseInstrumentSettingRepository instrumentSettingRepository)
 {
     _instrumentSettingRepository = instrumentSettingRepository;
 }