Esempio n. 1
0
        public void ConnectToDealingServers()
        {
            //CUtil.TaskStart(TaskUpdateVMFromDealingServer);
            _commuTradeManager = new CCommuTradeManager(this);


            InitLstModelDealingServer();
            ValidateConfigsConsistent();


            _commuTradeManager.ConnectToDealingServers();
        }
Esempio n. 2
0
        public void TaskClient()
        {
            Thread.Sleep(7000);

            string ip   = "127.0.0.1";
            int    port = 6000;


            MockTradeMgr       trdMgr      = new MockTradeMgr();
            CCommuTradeManager commuTrdMgr = new CCommuTradeManager(trdMgr /*, ip, port*/);



            commuTrdMgr.OnUserTryConnectToServer(new UserConReq
            {
                AuthRequest = new CAuthRequest {
                    User = "******", Password = "******"
                },
                ConnNum = 0
            });


            //_tcpCommu.TryToConnect();
        }