websitepanel/WebsitePanel/Sources/WebsitePanel.WebDavPortal/WebConfigSections/SessionKeysElement.cs
2014-12-03 11:43:26 +03:00

29 lines
No EOL
1,002 B
C#

using System.Configuration;
namespace WebsitePanel.WebDavPortal.WebConfigSections
{
public class SessionKeysElement : ConfigurationElement
{
private const string KeyKey = "key";
private const string ValueKey = "value";
public const string AccountInfoKey = "AccountInfoSessionKey";
public const string WebDavManagerKey = "WebDavManagerSessionKey";
public const string ResourseRenderCountKey = "ResourseRenderCountSessionKey";
public const string ItemIdSessionKey = "ItemId";
[ConfigurationProperty(KeyKey, IsKey = true, IsRequired = true)]
public string Key
{
get { return (string) this[KeyKey]; }
set { this[KeyKey] = value; }
}
[ConfigurationProperty(ValueKey, IsKey = true, IsRequired = true)]
public string Value
{
get { return (string) this[ValueKey]; }
set { this[ValueKey] = value; }
}
}
}