Ejemplo n.º 1
0
        public override void Build()
        {
            IisAppPool appPool = CreateIfNotExtant();

            appPool.Identity = Identity.Value;
            appPool.Start();
        }
Ejemplo n.º 2
0
        private void DeleteIfExtant()
        {
            IisAppPool appPool = Iis.FindAppPoolByName(Name.Value);

            if (appPool != null)
            {
                appPool.Delete();
            }
        }
Ejemplo n.º 3
0
        public override void Build()
        {
            IisAppPool appPool = Iis.FindAppPoolByName(Name.Value);

            if (appPool != null)
            {
                appPool.Stop();
                Thread.Sleep(Wait.Value);
            }
        }
Ejemplo n.º 4
0
        private IisAppPool CreateIfNotExtant()
        {
            IisAppPool appPool = Iis.FindAppPoolByName(Name.Value);

            if (appPool == null)
            {
                appPool = Iis.CreateAppPool(Name.Value);
            }

            return(appPool);
        }