public void ConnectToDealingServers() { //CUtil.TaskStart(TaskUpdateVMFromDealingServer); _commuTradeManager = new CCommuTradeManager(this); InitLstModelDealingServer(); ValidateConfigsConsistent(); _commuTradeManager.ConnectToDealingServers(); }
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(); }