/// <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;
 }
 /// <summary>
 /// Creates a new Web Site in IIS if not exist. If exist, will delete and then create new.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="id"></param>
 /// <returns></returns>
 public static IOfferRemoteConfiguration IISWebSite(this IOfferRemoteConfiguration infra, string name, int id)
 {
     var op = new IisWebSiteOperation(name, id);
     Configure.Operation(infra, op);
     return infra;
 }
Esempio n. 3
0
 public IOfferInfrastructure IISWebSite(string name, int id)
 {
     var webSiteOperation = new IisWebSiteOperation(name, id);
     AddOperation(webSiteOperation);
     return this;
 }
Esempio n. 4
0
 public IOfferInfrastructure IISWebSite(string name, int id)
 {
     var webSiteOperation = new IisWebSiteOperation(name, id);
     webSiteOperation.Configure(new RemoteCompositeBuilder(_infrastructureSequence.NewCompositeSequence(webSiteOperation), _webDeploy), new InfrastructureBuilder(_infrastructureSequence, _webDeploy));
     return this;
 }
Esempio n. 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;
 }