Sha256: 3a5e8bcb2b2fc76e2a245f519809b3916c991cdf9d08350658aa9ba404c6898a
Contents?: true
Size: 1000 Bytes
Versions: 3
Compression:
Stored size: 1000 Bytes
Contents
using System; using System.DirectoryServices; namespace DolphinDeploy.IIS.IIS6 { public class AppPoolController : IIS6Manager { public void Create() { DirectoryEntry appPools = GetAppPoolAdmin(); DirectoryEntry appPool = appPools.Children.Add(Name, "IISApplicationPool"); appPool.CommitChanges(); SetProperties(appPool); appPool.CommitChanges(); } private void SetProperties(DirectoryEntry appPool) { appPool.Properties["AppPoolQueueLength"].Value = 4000; appPool.Invoke("SetInfo", null); } public bool Exists() { var appPool = GetAppPool(); return appPool != null; } public void Delete() { if (Exists()) { var appPool = GetAppPool(); appPool.DeleteTree(); } } } }
Version data entries
3 entries across 3 versions & 1 rubygems