示例#1
0
        /// <summary>
        /// Will create a new Web Application in IIS under the given Web Site.
        /// </summary>
        /// <param name="name"></param>
        /// <param name="webSite"></param>
        /// <returns></returns>
        public static IOfferRemoteConfiguration IISWebApp(this IOfferRemoteConfiguration infra, string name, string webSite)
        {
            var op = new IisWebAppOperation(name, webSite);

            OperationExecutor.Execute((RemoteBuilder)infra, op);
            return(infra);
        }
        /// <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 op = new IisWebAppOperation(name, webSite);

            Configure.Operation(infra, op);
            return(infra);
        }
示例#3
0
        public IOfferInfrastructure IISWebApp(string name, string webSite)
        {
            var op = new IisWebAppOperation(name, webSite);

            AddOperation(op);
            return(this);
        }
示例#4
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);
        }
示例#5
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);
        }