Beispiel #1
0
        /// <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);

            OperationExecutor.Execute((RemoteBuilder)infra, op);
            return(infra);
        }
Beispiel #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);

            AddOperation(op);
            return(this);
        }