public override void Build() { IisAppPool appPool = CreateIfNotExtant(); appPool.Identity = Identity.Value; appPool.Start(); }
private void DeleteIfExtant() { IisAppPool appPool = Iis.FindAppPoolByName(Name.Value); if (appPool != null) { appPool.Delete(); } }
public override void Build() { IisAppPool appPool = Iis.FindAppPoolByName(Name.Value); if (appPool != null) { appPool.Stop(); Thread.Sleep(Wait.Value); } }
private IisAppPool CreateIfNotExtant() { IisAppPool appPool = Iis.FindAppPoolByName(Name.Value); if (appPool == null) { appPool = Iis.CreateAppPool(Name.Value); } return(appPool); }