Esempio n. 1
0
        public IOfferInfrastructure IISAppPool(string name, Action<IOfferIisAppPoolOptions> options)
        {
            var appPoolOptions = new IisAppPoolOptions();
            options(appPoolOptions);

            var appPoolOperation = new IisAppPoolOperation(name, appPoolOptions.Values);

            appPoolOperation.Configure(new RemoteCompositeBuilder(_infrastructureSequence.NewCompositeSequence(appPoolOperation), _webDeploy), new InfrastructureBuilder(_infrastructureSequence, _webDeploy));
            return this;
        }
Esempio n. 2
0
        public IOfferInfrastructure IISAppPool(string name, Action<IOfferIisAppPoolOptions> options)
        {
            var appPoolOptions = new IisAppPoolOptions();
            options(appPoolOptions);

            var appPoolOperation = new IisAppPoolOperation(name, appPoolOptions.Values);

            AddOperation(appPoolOperation);
            return this;
        }
 /// <summary>
 /// Will create a new Application Pool in IIS with provided options.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="options"></param>
 /// <returns></returns>
 public static IOfferRemoteConfiguration IISAppPool(this IOfferRemoteConfiguration infra, string name, Action<IOfferIisAppPoolOptions> options)
 {
     var opt = new IisAppPoolOptions();
     options(opt);
     var op = new IisAppPoolOperation(name, opt.Values);
     Configure.Operation(infra, op);
     return infra;
 }
 public IisAppPoolOperation(string appPoolName, IisAppPoolOptions.IisAppPoolOptionsValues appPoolOptions)
 {
     _appPoolName = appPoolName;
     _appPoolOptions = appPoolOptions;
 }