webdav portal config refactoring

This commit is contained in:
vfedosevich 2015-02-24 23:17:49 -08:00
parent 82a9151241
commit 4122caa16d
21 changed files with 39 additions and 2841 deletions

View file

@ -0,0 +1,16 @@
using System.Configuration;
namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
{
public class EnterpriseServerElement : ConfigurationElement
{
private const string ValueKey = "url";
[ConfigurationProperty(ValueKey, IsKey = true, IsRequired = true)]
public string Value
{
get { return (string)this[ValueKey]; }
set { this[ValueKey] = value; }
}
}
}

View file

@ -9,6 +9,7 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections
private const string WebdavRootKey = "webdavRoot";
private const string AuthTimeoutCookieNameKey = "authTimeoutCookieName";
private const string AppName = "applicationName";
private const string EnterpriseServerUrlNameKey = "enterpriseServer";
private const string WebsitePanelConstantUserKey = "websitePanelConstantUser";
private const string ElementsRenderingKey = "elementsRendering";
private const string Rfc2898CryptographyKey = "rfc2898Cryptography";
@ -28,6 +29,13 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections
set { this[AuthTimeoutCookieNameKey] = value; }
}
[ConfigurationProperty(EnterpriseServerUrlNameKey, IsRequired = true)]
public EnterpriseServerElement EnterpriseServerUrl
{
get { return (EnterpriseServerElement)this[EnterpriseServerUrlNameKey]; }
set { this[EnterpriseServerUrlNameKey] = value; }
}
[ConfigurationProperty(WebdavRootKey, IsRequired = true)]
public WebdavRootElement WebdavRoot
{