Exemplo n.º 1
0
 public void start()
 {
     try
     {
         channel = new TcpChannel();
         ChannelServices.RegisterChannel(channel, false);
         server = (RemoteTask)Activator.GetObject(typeof(RemoteTask), "tcp://localhost:8080/ShellSort");
         Console.Write("Лабораторная работа №2 \n Автор: Ануфриев И.С. \n гр. 13-В-1 \n ShellSort \n");
         server.CreateNewClient();
         ID = server.getID() - 1;
         server.ShellSort(ID);
         for (int i = 0; i < server.massive.GetLength(1); i++)
         {
             Console.Write(server.massive[ID, i] + " ");
         }
         Console.ReadKey();
     }
     catch (SystemException)
     {
         Console.WriteLine("Соединение было потеряно, завершение работы.\n"
                           + "Нажмите для продолжения...");
         Console.ReadKey();
     }
 }