예제 #1
0
        /// <summary>
        /// 单例模式下获取模块实例
        /// </summary>
        /// <returns>模块单例实例</returns>
        public static PreTradeModule getInstance()
        {
            if (instance == null)
            {
                instance = new PreTradeModule();
            }

            return(instance);
        }
예제 #2
0
 /// <summary>
 /// 单例模式下获取模块实例
 /// </summary>
 /// <returns>模块单例实例</returns>
 public static PreTradeModule getInstance()
 {
     if (instance == null)
     {
         instance = new PreTradeModule();
     }
    
     return instance;
 }
예제 #3
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);
        }