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); }
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); }