/// <summary>
        /// Will create a new Web Application in IIS under the given Web Site, with the provided options.
        /// </summary>
        /// <param name="name"></param>
        /// <param name="webSite"></param>
        /// <param name="options"></param>
        /// <returns></returns>
        public static IOfferRemoteConfiguration IISWebApp(this IOfferRemoteConfiguration infra, string name, string webSite, Action<IOfferIisWebAppOptions> options)
        {
            var builder = new IisWebAppOptions(name);
            options(builder);

            var op = new IisWebAppOperation(name, webSite, builder.Values);
            Configure.Operation(infra, op);
            return infra;
        }
예제 #2
0
        public IOfferInfrastructure IISWebApp(string name, string webSite, Action<IOfferIisWebAppOptions> options)
        {
            var webAppOptions = new IisWebAppOptions(name);
            options(webAppOptions);

            var op = new IisWebAppOperation(name, webSite, webAppOptions.Values);
            op.Configure(new RemoteCompositeBuilder(_infrastructureSequence.NewCompositeSequence(op), _webDeploy), new InfrastructureBuilder(_infrastructureSequence, _webDeploy));
            return this;
        }
 public IisWebAppOperation(string webAppName, string webSiteName, IisWebAppOptions.IisWebAppOptionsValues options)
 {
     _webAppName = webAppName;
     _webSiteName = webSiteName;
     _options = options;
 }
예제 #4
0
        public IOfferInfrastructure IISWebApp(string name, string webSite, Action<IOfferIisWebAppOptions> options)
        {
            var webAppOptions = new IisWebAppOptions(name);
            options(webAppOptions);

            var op = new IisWebAppOperation(name, webSite, webAppOptions.Values);
            AddOperation(op);
            return this;
        }