Exemplo n.º 1
0
 private Program(string[] args)
 {
     if (args == null || args.Length == 0)
         _steps = UpdateStep.All;
     else
     {
         foreach (string s in args)
         {
             UpdateStep us;
             if (!string.IsNullOrWhiteSpace(s) && Enum.TryParse(s, true, out us))
                 _steps |= us;
         }
     }
     _logger.InfoFormat("Start: {0}", _steps);
 }
Exemplo n.º 2
0
 private Program(string[] args)
 {
     if (args == null || args.Length == 0)
     {
         _steps = UpdateStep.All;
     }
     else
     {
         foreach (string s in args)
         {
             UpdateStep us;
             if (!string.IsNullOrWhiteSpace(s) && Enum.TryParse(s, true, out us))
             {
                 _steps |= us;
             }
         }
     }
     _logger.InfoFormat("Start: {0}", _steps);
 }