public ExchangeSystem(ExchangeSystemSetting exchangeSystemSetting, ConnectionManager connectionManager) { this._ExchangeSystemSetting = exchangeSystemSetting; this._ConnectionManager = connectionManager; this._CommandRelayEngine = new RelayEngine<Command>(this.DispatchCommand, this.HandleEngineException); this._QuotationRelayEngine = new RelayEngine<List<GeneralQuotation>>(this.SetQuotation, this.HandleQuotationRelayEngineException); this._QuotationServer = new QuotationServer(exchangeSystemSetting); }
public ExchangeManager(ExchangeSystemSetting[] exchangeSystemSettings) { for (int i = 0; i < exchangeSystemSettings.Length; i++) { this._ExchangeSystems.Add(exchangeSystemSettings[i].Code, new ExchangeSystem(exchangeSystemSettings[i])); } this._ConnectionManager = new ConnectionManager(this._ExchangeSystems); }
public ExchangeManager(ExchangeSystemSetting[] exchangeSystemSettings) { this._ConnectionManager = new ConnectionManager(this._ExchangeSystems); for (int i = 0; i < exchangeSystemSettings.Length; i++) { this._ExchangeSystems.Add(exchangeSystemSettings[i].Code, new ExchangeSystem(exchangeSystemSettings[i], this._ConnectionManager)); this._ExchangeConnectionStates.Add(exchangeSystemSettings[i].Code, ConnectionState.Unknown); } }