Execute() private method

private Execute ( ) : int
return int
Example #1
0
        public static int Main(String[] args)
        {
            ResinArgs resinArgs = new ResinArgs(Environment.GetCommandLineArgs());

            Resin resin = new Resin(resinArgs);

            return(resin.Execute());
        }
Example #2
0
        public static int Main(String[] args)
        {
            ResinArgs resinArgs = new ResinArgs(Environment.GetCommandLineArgs());

              Resin resin = new Resin(resinArgs);

              return resin.Execute();
        }
 public static int Main(String[] args)
 {
   Resin resin = new Resin(Environment.GetCommandLineArgs());
   if (resin.ResinArgs.IsServiceCommand()) {
     resin.Info("Please use setup.exe to install or remove the service.");
     return -1;
   } else if (!resin.ResinArgs.IsValid()) {
     resin.Usage(resin.ServiceName);
     return -1;
   } else {
     return resin.Execute();
   }
 }