/// <summary> /// Конструктор /// </summary> public CQGCConnector( CQGCParameters settings) { this.settings = settings; adapter = new CQGCAdapter(settings); var instrumentResolver = new CQGCInstrumentResolver(adapter, settings.InstrumentConverter); feed = new CQGCFeed(adapter, instrumentResolver); router = new CQGCRouter(adapter, instrumentResolver); historyProvider = new CQGCInstrumentHistoryProvider(adapter, instrumentResolver); ConnectionStatusProviders = new IConnectionStatusProvider[] { this }; adapter.ConnectionStatusChanged += AdapterConnectionStatusChanged; adapter.UserMessageReceived += UserMessageReceived; }
public TransactionDispatcher(CQGCRouter router) { this.router = router; }