Released windows auth, connect to ES.Services.
This commit is contained in:
parent
2569e55609
commit
d29c347ff4
294 changed files with 329583 additions and 2315 deletions
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
[ConfigurationCollection(typeof(OfficeOnlineElement))]
|
||||
public class OfficeOnlineElementCollection : ConfigurationElementCollection
|
||||
{
|
||||
private const string UrlKey = "url";
|
||||
private const string IsEnabledKey = "isEnabled";
|
||||
|
||||
[ConfigurationProperty(UrlKey, IsKey = true, IsRequired = true)]
|
||||
public string Url
|
||||
{
|
||||
get { return this[UrlKey].ToString(); }
|
||||
set { this[UrlKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(IsEnabledKey, IsKey = true, IsRequired = true, DefaultValue = false)]
|
||||
public bool IsEnabled
|
||||
{
|
||||
get { return Boolean.Parse(this[IsEnabledKey].ToString()); }
|
||||
set { this[IsEnabledKey] = value; }
|
||||
}
|
||||
|
||||
protected override ConfigurationElement CreateNewElement()
|
||||
{
|
||||
return new OfficeOnlineElement();
|
||||
}
|
||||
|
||||
protected override object GetElementKey(ConfigurationElement element)
|
||||
{
|
||||
return ((OfficeOnlineElement)element).Extension;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue