Re-factored IIS 7 provider to improve GetSite() operation performance.
This commit is contained in:
parent
58b073a6aa
commit
eb64f13221
21 changed files with 1058 additions and 1058 deletions
|
@ -40,20 +40,17 @@ namespace WebsitePanel.Providers.Web.Iis.ClassicAsp
|
|||
public const string SectionName = "system.webServer/asp";
|
||||
public const string EnableParentPathsAttribute = "enableParentPaths";
|
||||
|
||||
public PropertyBag GetClassicAspSettings(string siteId)
|
||||
public PropertyBag GetClassicAspSettings(ServerManager srvman, string siteId)
|
||||
{
|
||||
using (var srvman = GetServerManager())
|
||||
{
|
||||
var config = srvman.GetApplicationHostConfiguration();
|
||||
//
|
||||
var aspSection = config.GetSection(SectionName, siteId);
|
||||
//
|
||||
PropertyBag bag = new PropertyBag();
|
||||
//
|
||||
bag[ClassicAspGlobals.EnableParentPaths] = Convert.ToBoolean(aspSection.GetAttributeValue(EnableParentPathsAttribute));
|
||||
//
|
||||
return bag;
|
||||
}
|
||||
var config = srvman.GetApplicationHostConfiguration();
|
||||
//
|
||||
var aspSection = config.GetSection(SectionName, siteId);
|
||||
//
|
||||
PropertyBag bag = new PropertyBag();
|
||||
//
|
||||
bag[ClassicAspGlobals.EnableParentPaths] = Convert.ToBoolean(aspSection.GetAttributeValue(EnableParentPathsAttribute));
|
||||
//
|
||||
return bag;
|
||||
}
|
||||
|
||||
public void SetClassicAspSettings(WebVirtualDirectory virtualDir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue