Esempio n. 1
0
 private static void ConfigureService(ConfigVerb verb)
 {
     if (!string.IsNullOrEmpty(verb.Apply))
     {
         ApplyConfig(verb.Apply);
     }
     else
     {
         Console.Error.WriteLine("Invalid config name");
     }
 }
Esempio n. 2
0
 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());
     }
 }