Beispiel #1
0
        public static SystemMonitorClass getInstance()
        {
            if (instance == null)
            {
                instance = new SystemMonitorClass();
            }

            return(instance);
        }
Beispiel #2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AuthConfig.RegisterAuth();

            //模块初始化工作
            //ListCreate.Main();

            DBExamination.CheckDB();

            PreTradeModule.getInstance().Run();

            StockTradeThread.Main();

            FutureMonitor FM = new FutureMonitor();

            FM.Main();

            StrategyMonitorClass strategyMonitor = new StrategyMonitorClass();

            strategyMonitor.Run();

            MarketInfo marketInfo = new MarketInfo();

            marketInfo.Run();

            TestClass t = new TestClass();

            t.Run();

            UpdateMarketPanel MarketMonitor = new UpdateMarketPanel();

            MarketMonitor.Run();

            RefundTrade.Main();

            Entrust_Query.Instance.Run();

            ThreadHeartBeatControl.Run();

            SystemMonitorClass.getInstance().Run();

            riskmonitor.Init();

            accountMonitor.RUN();
            BatchTrade_MarketReciver.Run();

            AuthorizedStrategy.RUN();

            Thread.Sleep(3000);
        }
Beispiel #3
0
        public static SystemMonitorClass getInstance()
        {
            if (instance == null)
            {
                instance = new SystemMonitorClass();
            }

            return instance;
        }