예제 #1
0
        /// <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;
        }
예제 #2
0
 public TransactionDispatcher(CQGCRouter router)
 {
     this.router = router;
 }