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,39 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using WebsitePanel.WebDavPortal.WebConfigSections;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.Config.Entities
|
||||
{
|
||||
public class ConnectionStringsCollection : AbstractConfigCollection
|
||||
{
|
||||
private readonly IEnumerable<AppConnectionStringsElement> _appConnectionStringsElements;
|
||||
|
||||
public ConnectionStringsCollection()
|
||||
{
|
||||
_appConnectionStringsElements = ConfigSection.ConnectionStrings.Cast<AppConnectionStringsElement>();
|
||||
}
|
||||
|
||||
public string WebDavServer
|
||||
{
|
||||
get
|
||||
{
|
||||
AppConnectionStringsElement connectionStr =
|
||||
_appConnectionStringsElements.FirstOrDefault(
|
||||
x => x.Key == AppConnectionStringsElement.WebdavConnectionStringKey);
|
||||
return connectionStr != null ? connectionStr.ConnectionString : null;
|
||||
}
|
||||
}
|
||||
|
||||
public string LdapServer
|
||||
{
|
||||
get
|
||||
{
|
||||
AppConnectionStringsElement connectionStr =
|
||||
_appConnectionStringsElements.FirstOrDefault(
|
||||
x => x.Key == AppConnectionStringsElement.LdapConnectionStringKey);
|
||||
return connectionStr != null ? connectionStr.ConnectionString : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue