示例#1
0
        public override void Build()
        {
            IisAppPool appPool = CreateIfNotExtant();

            appPool.Identity = Identity.Value;
            appPool.Start();
        }
示例#2
0
        private void DeleteIfExtant()
        {
            IisAppPool appPool = Iis.FindAppPoolByName(Name.Value);

            if (appPool != null)
            {
                appPool.Delete();
            }
        }
示例#3
0
        public override void Build()
        {
            IisAppPool appPool = Iis.FindAppPoolByName(Name.Value);

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

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

            return(appPool);
        }