fb6067afc3
Loads entire configuration at start-up (rather than scope-based loading). Deserialization occurs once, with the resulting value cached and replayed if the requested type matches.
34 lines
800 B
C#
34 lines
800 B
C#
using Disco.Data.Repository;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Disco.Data.Configuration.Modules
|
|
{
|
|
public class ActiveDirectoryConfiguration : ConfigurationBase
|
|
{
|
|
public ActiveDirectoryConfiguration(DiscoDataContext Database) : base(Database) { }
|
|
|
|
public override string Scope
|
|
{
|
|
get { return "ActiveDirectory"; }
|
|
}
|
|
|
|
public Dictionary<string, List<string>> SearchContainers
|
|
{
|
|
get
|
|
{
|
|
return Get<Dictionary<string, List<string>>>(null);
|
|
}
|
|
set
|
|
{
|
|
Set(value);
|
|
}
|
|
}
|
|
|
|
public bool? SearchAllForestServers
|
|
{
|
|
get { return Get<bool?>(null); }
|
|
set { Set(value); }
|
|
}
|
|
}
|
|
}
|