コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
     }
 }