Exemplo n.º 1
0
        public Task Run()
        {
            bool clearJobs    = true;
            bool scheduleJobs = true;

            /* TODO
             *          for (int i = 0; i < args.Length; i++)
             *          {
             *                  if (args[i].ToUpper().Equals("clearJobs".ToUpper()))
             *                  {
             *                          clearJobs = true;
             *                  }
             *                  else if (args[i].ToUpper().Equals("dontScheduleJobs".ToUpper()))
             *                  {
             *                          scheduleJobs = false;
             *                  }
             *          }
             */
            ClusterExample example = new ClusterExample();

            return(example.Run(clearJobs, scheduleJobs));
        }
Exemplo n.º 2
0
 public void Run()
 {
     bool clearJobs = true;
     bool scheduleJobs = true;
     /* TODO
     for (int i = 0; i < args.Length; i++)
     {
         if (args[i].ToUpper().Equals("clearJobs".ToUpper()))
         {
             clearJobs = true;
         }
         else if (args[i].ToUpper().Equals("dontScheduleJobs".ToUpper()))
         {
             scheduleJobs = false;
         }
     }
     */
     ClusterExample example = new ClusterExample();
     example.Run(clearJobs, scheduleJobs);
 }