private Application() { AgentController = ComponentFactory.CreateAgentController(); this.ParticipantService = new ParticipantServices(); this.ParticipantService.Url = SettingManager.Default.ParticipantServiceUrl; this.SecurityService = new SecurityServices(); this.SecurityService.Url = SettingManager.Default.SecurityServiceUrl; this.StateServer = new StateServerService(); this.StateServer.Url = SettingManager.Default.StateServerUrl; this.StateServerReadyCheck(this.StateServer); this.MarketDepthManager = new MarketDepthManager(); int tickDataReturnCount = Convert.ToInt32(ConfigurationManager.AppSettings["TickDataReturnCount"]); this.TradingConsoleServer = new TradingConsoleServer(SettingManager.Default.ConnectionString, tickDataReturnCount); this.AsyncResultManager = new AsyncResultManager(TimeSpan.FromMinutes(30)); this.AssistantOfCreateChartData2 = new AssistantOfCreateChartData2(); this.SessionMonitor = new SessionMonitor(SettingManager.Default.SessionExpiredTimeSpan); this._TradeDayChecker = new TradeDayChecker(); //todo: store/build mobile settings in somewhere var mobileSettings = new Dictionary <string, string>(); mobileSettings.Add("ConnectionString", SettingManager.Default.ConnectionString); Mobile.Manager.Initialize(this.StateServer, mobileSettings, this.MobileSendingCallback); }