Example #1
0
        public static void Main(String[] args)
        {
            HostPowerOp obj = new HostPowerOp();

            cb = AppUtil.AppUtil.initialize("PowerDownHostToStandBy"
                                            , HostPowerOp.constructOptions()
                                            , args);
            Boolean valid = obj.customValidation();

            if (valid)
            {
                cb.connect();
                obj.PowerDownHost(args);
                cb.disConnect();
                Console.WriteLine("Press any key to exit: ");
                Console.Read();
                Environment.Exit(1);
            }
        }
 public static void Main(String[] args)
 {
     HostPowerOp obj = new HostPowerOp();
     cb = AppUtil.AppUtil.initialize("PowerDownHostToStandBy"
                                , HostPowerOp.constructOptions()
                                , args);
     Boolean valid = obj.customValidation();
     if (valid)
     {
         cb.connect();
         obj.PowerDownHost(args);
         cb.disConnect();
         Console.WriteLine("Press any key to exit: ");
         Console.Read();
         Environment.Exit(1);
     }
 }