Esempio n. 1
0
        public static void StartPoll()
        {
            ServerContainer.ForkServer <ConfigServer>();
            var thDog = new Thread(DogProc);

            thDog.IsBackground = true;
            thDog.Start();
        }
Esempio n. 2
0
        public void Initialize()
        {
            var logger = Utils.CommonLog;

            if (!Enable)
            {
                logger.Info("复制服务被禁用,启动但不处理复制关系");
            }
            EnableRunning          = true;
            PumpServer.OnNewTrade += WhenNewTrade;
            if (_thProc == null)
            {
                _thProc              = new Thread(CopyProc);
                _thProc.Name         = "CopyServer";
                _thProc.IsBackground = true;
                _thProc.Start();
            }
            OpenAccount.OnCreateUser += WhenCreateUser;
            ServerContainer.ForkServer <SaveServer>();
            logger.Info("复制服务已经完成启动");
        }