private static void ConfigureService(ConfigVerb verb) { if (!string.IsNullOrEmpty(verb.Apply)) { ApplyConfig(verb.Apply); } else { Console.Error.WriteLine("Invalid config name"); } }
private static void ConfigureService(ConfigVerb verb) { if (!string.IsNullOrWhiteSpace(verb.Apply)) { ApplyConfig(verb.Apply); } else if (!string.IsNullOrWhiteSpace(verb.Set)) { SetConfig(verb.Set); } else { PrintConfigNames(GetConfigNames()); } }