Exemple #1
0
 public static List <AppPool> ListAll(
     AppCmd appCmd)
 {
     return(appCmd.GetLines("list apppools /text:name")
            .Select(s => new AppPool(s, appCmd))
            .ToList());
 }
Exemple #2
0
 public static List <Site> ListAll(
     AppCmd appCmd)
 {
     return(appCmd.GetLines("list sites /text:name")
            .Select(s => new Site(s, appCmd))
            .ToList());
 }
Exemple #3
0
 public static List <App> ListAll(
     string site,
     AppCmd appCmd)
 {
     return(appCmd.GetLines($"list app /site.name:\"{site}\" /text:app.name")
            .Select(s => new App(s, appCmd))
            .ToList());
 }
Exemple #4
0
 public static List <VDir> ListAll(
     string app,
     AppCmd appCmd)
 {
     return(appCmd.GetLines($"list vdir /app.name:\"{app}\" /text:vdir.name")
            .Select(s => new VDir(s, appCmd))
            .ToList());
 }