Beispiel #1
0
        public static IISWMISite CreateNewSite(String serverComment, String serverBindings, String filePath)
        {
            Directory.CreateDirectory(filePath);
            IISWMISite retVal = new IISWMISite();

            //Do not put any bindings in... we will do that after the site is create
            retVal.SiteId = Convert.ToString(IISWMIHelper.GetIIsWebService().Invoke("CreateNewSite", serverComment, new object[0], filePath));
            retVal.SetBindings(serverBindings);
            return(retVal);
        }
Beispiel #2
0
 public override bool DeleteSite(IISIdentifier siteIdentifier)
 {
     return(IISWMISite.DeleteSite(siteIdentifier));
 }
Beispiel #3
0
 public override IISSite FindSite(IISIdentifier siteIdentifier)
 {
     return(IISWMISite.FindSite(siteIdentifier));
 }
Beispiel #4
0
 public override IISSite CreateNewSite(IISServerCommentIdentifier serverComment, String serverBindings, String filePath)
 {
     return(IISWMISite.CreateNewSite(serverComment.Value, serverBindings, filePath));
 }