Ejemplo n.º 1
0
 public void connect()
 {
     channel = new TcpChannel();
     ChannelServices.RegisterChannel(channel, false);
     Console.WriteLine("Введите адрес сервера (tcp://localhost:8080/RemoteTask)");
     server = (RemoteTask)Activator.GetObject(typeof(RemoteTask), Console.ReadLine());
     id     = server.joinToServer();
     if (!server.setManage(id))
     {
         Environment.Exit(1);
     }
 }