Exemple #1
0
 static void Main(string[] args)
 {
     using (VSphereHostShutdownService svc = new VSphereHostShutdownService())
     {
         if (args.Length == 3)
         {
             svc.Server   = args[0];
             svc.Username = args[1];
             svc.Password = args[2];
             svc.RunStandalone();
         }
         else
         {
             svc.Run(args);
         }
     }
 }
 static void Main(string[] args)
 {
     using (VSphereHostShutdownService svc = new VSphereHostShutdownService())
     {
         if (args.Length == 3)
         {
             svc.Server = args[0];
             svc.Username = args[1];
             svc.Password = args[2];
             svc.RunStandalone();
         }
         else
         {
             svc.Run(args);
         }
     }
 }