Example #1
0
 public IisWebSiteOperation(string webSiteName, int id, IisWebSiteOptions options)
 {
     _webSiteName = webSiteName;
     _id = id;
     _options = options;
 }
Example #2
0
 public IisWebSiteOperation(string webSiteName, int id)
 {
     _webSiteName = webSiteName;
     _id = id;
     _options = new IisWebSiteOptions();
 }
 public IOfferInfrastructure IISWebSite(string name, int id, Action<IOfferIisWebSiteOptions> options)
 {
     var webSiteOptions = new IisWebSiteOptions();
     options(webSiteOptions);
     var webSiteOperation = new IisWebSiteOperation(name, id, webSiteOptions);
     webSiteOperation.Configure(new RemoteCompositeBuilder(_infrastructureSequence.NewCompositeSequence(webSiteOperation), _webDeploy), new InfrastructureBuilder(_infrastructureSequence, _webDeploy));
     return this;
 }
 /// <summary>
 /// Creates a new Web Site in IIS if not exist. If exist, will delete and then create new with provided options.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="id"></param>
 /// <param name="options"></param>
 /// <returns></returns>
 public static IOfferRemoteConfiguration IISWebSite(this IOfferRemoteConfiguration infra, string name, int id, Action<IOfferIisWebSiteOptions> options)
 {
     var opt = new IisWebSiteOptions();
     options(opt);
     var op = new IisWebSiteOperation(name, id, opt);
     Configure.Operation(infra, op);
     return infra;
 }
Example #5
0
 public IOfferInfrastructure IISWebSite(string name, int id, Action<IOfferIisWebSiteOptions> options)
 {
     var webSiteOptions = new IisWebSiteOptions();
     options(webSiteOptions);
     var webSiteOperation = new IisWebSiteOperation(name, id, webSiteOptions);
     AddOperation(webSiteOperation);
     return this;
 }