/// <summary> /// 创建HTTPServer数据接收器。 /// </summary> private void CreateHttpDataReceiver() { try { HttpReceiverSection config = HttpReceiverSection.GetSection(); m_httpDataReceiver = new HttpServerDataReceiver(config); m_httpDataReceiver.Notify += OnNotifyEventArrived; string text = String.Format("{0} Create {1} OK.", this, m_httpDataReceiver); //m_eventLogger.WriteInformation(text); } catch (Exception ex) { string text = "Create HttpDataReceiver object failed, " + ex.Message; throw new ApplicationException(text, ex); } }
public HttpServerDataReceiver(HttpReceiverSection config) { m_config = config; m_eventLogger = AppLogger.InitInstance(); m_listenerList = new List <IMarketDataListener>(); }