internal static bool HasSelectedAppPoolsForCollection() { AppPoolConfigurationSection appPoolConfigSection = ConfigurationManager.GetSection("AppPoolsSection") as AppPoolConfigurationSection; if (appPoolConfigSection == null) { return(false); } return(appPoolConfigSection.AppPools.Count > 0); }
internal static List <string> GetSelectedAppPools() { List <string> appPools = new List <string>(); AppPoolConfigurationSection appPoolConfigSection = ConfigurationManager.GetSection("AppPoolsSection") as AppPoolConfigurationSection; for (int i = 0; i < appPoolConfigSection.AppPools.Count; i++) { if (ValidateAppPoolName(appPoolConfigSection.AppPools[i].Name)) { appPools.Add(appPoolConfigSection.AppPools[i].Name); } } return(appPools); }