예제 #1
0
        public Sim.SimulationServiceClient createSimulationService()
        {
            Binding httpBinding = new BasicHttpBinding();

            Sim.SimulationServiceClient simulationService = new Sim.SimulationServiceClient(httpBinding, getEndpointAddress(SIM_ENDING));
            return(simulationService);
        }
예제 #2
0
 public void SetUpServer(string ip, string port)
 {
     connUtil.SetUpServer(ip, port);
     CloseServices();
     loginService      = connUtil.createLoginService();
     factoryService    = connUtil.createFactoryService();
     simulationService = connUtil.createSimulationService();
 }
 public Sim.SimulationServiceClient createSimulationService()
 {
     try
     {
         Binding httpBinding = new BasicHttpBinding();
         Sim.SimulationServiceClient simulationService = new Sim.SimulationServiceClient(httpBinding, getEndpointAddress(SIM_ENDING));
         return simulationService;
     }
     catch (Exception)
     {
         return null;
     }
 }
 public void SetUpServer(string ip, string port)
 {
     connUtil.SetUpServer(ip, port);
         CloseServices();
         loginService = connUtil.createLoginService();
         factoryService = connUtil.createFactoryService();
         simulationService = connUtil.createSimulationService();
 }