Files
Disco/Disco.Data/Configuration/Modules/BootstrapperConfiguration.cs
T
Gary Sharp fb6067afc3 Update: Configuration Optimisation and Caching
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.
2014-05-07 22:45:59 +10:00

39 lines
813 B
C#

using Disco.Data.Repository;
namespace Disco.Data.Configuration.Modules
{
public class BootstrapperConfiguration : ConfigurationBase
{
public BootstrapperConfiguration(DiscoDataContext Database) : base(Database) { }
public override string Scope
{
get { return "Bootstrapper"; }
}
public string MacSshUsername
{
get
{
return this.Get("root");
}
set
{
this.Set(value);
}
}
public string MacSshPassword
{
get
{
return this.GetDeobsfucated(string.Empty);
}
set
{
this.SetObsfucated(value);
}
}
}
}