Beispiel #1
0
        static void RunCommand(ClientData client)
        {
            IClient cli = new Client2(client.ip, client.username, client.password);

            cli.Connect();

            Console.WriteLine();
            Console.WriteLine(client.ip + " Running...");

            foreach (var cmd in command)
            {
                cli.WaitForIdle();
                cli.SendCommand(cmd);
            }

            cli.WaitForIdle();

            cli.Disconnect();
            cli = null;

            Console.WriteLine();
            Console.WriteLine(client.ip + " Finished...");
        }
Beispiel #2
0
        static void RunCommand(ClientData client)
        {
            IClient cli = new Client2(client.ip, client.username, client.password);
            cli.Connect();

            Console.WriteLine();
            Console.WriteLine(client.ip + " Running...");

            foreach (var cmd in command)
            {
                cli.WaitForIdle();
                cli.SendCommand(cmd);
            }

            cli.WaitForIdle();

            cli.Disconnect();
            cli = null;

            Console.WriteLine();
            Console.WriteLine(client.ip + " Finished...");
        }