Exemplo n.º 1
0
        void InitOrderServer()
        {
            while (true)
            {
                _orderServer = new OrderServer();
                _orderServer.SetMainDir("C:\\PowerBase");
                _orderServer.ConnectDataCenter("", "");

                if (_orderServer.IsConnected())
                {
                    break;
                }
                else
                {
                    logger.Warn("OrderServer false!!!!");
                    System.Threading.Thread.Sleep(1);
                }
            }
        }