Esempio n. 1
0
 private Site createSite(Website website, ServerManager iisManager)
 {
     LogWriter.Current.Highlight("Trying to create a new website at {0}, port {1}",
                         website.WebsitePhysicalPath.ToFullPath(), website.Port);
     return iisManager.CreateSite(website.WebsiteName, website.WebsitePhysicalPath.ToFullPath(),
                                  website.Port, website.ForceWebsite);
 }
Esempio n. 2
0
        private Site createSite(Website website, ServerManager iisManager)
        {
            LogWriter.Current.Highlight("Trying to create a new website '{0}' at '{1}', port '{2}'",
                website.WebsiteName,
                website.WebsitePhysicalPath.ToFullPath(),
                website.Port);

            new FileSystem().CreateDirectory(website.WebsitePhysicalPath.ToFullPath());
            return iisManager.CreateSite(website.WebsiteName, website.WebsitePhysicalPath.ToFullPath(),
                                         website.Port, website.ForceWebsite);
        }