Exemplo n.º 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);
         }
     }
 }
Exemplo n.º 2
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);
         }
     }
 }