public SimBaseInstrumentService( IOrderBookProvider orderBookProvider, ITickPriceProvider tickPriceProvider, ITickPriceStore tickPriceStore, ISimBaseInstrumentSetting setting, IExchangeCommissionSettingRepository commissionSettingRepository, ILogFactory logFactory) { _orderBookProvider = orderBookProvider; _tickPriceProvider = tickPriceProvider; _tickPriceStore = tickPriceStore; _setting = setting; _commissionSettingRepository = commissionSettingRepository; _log = logFactory.CreateLog(this); }
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); }