public IISApplicationPool GetApplicationPool(string name) { IISApplicationPool pool; AppPoolsDict.TryGetValue(name, out pool); return(pool); }
public IISApplicationPool AddApplicationPool(string name) { IISApplicationPool apppool = GetApplicationPool(name); if (apppool == null) { apppool = Create <IISApplicationPool>(name, "IIsApplicationPool"); AppPoolsDict.Add(name, apppool); } return(apppool); }