public void Initialise(Nini.Config.IConfigSource source) { if (source.Configs["VersionControl"] == null) { return; } IConfig config = source.Configs["VersionControl"]; m_Enabled = config.GetBoolean("Enabled", false); //Auto OAR config m_autoOAREnabled = config.GetBoolean("AutoVersionEnabled", false); m_autoOARTime = config.GetFloat("AutoVersionTime", 1); }
public void Initialize(Nini.Config.IConfigSource source) { //read our connection string IConfig userConfig = source.Configs["UserService"]; string connString = String.Empty; if (userConfig != null) { connString = userConfig.GetString("ConnectionString", String.Empty); } if (String.Empty == connString) { userConfig = source.Configs["StandAlone"]; connString = userConfig.GetString("user_source", String.Empty); } _connFactory = new ConnectionFactory("MySQL", connString); }
public override void Initialize(Nini.Config.IConfigSource config, IRegistryCore registry) { m_registry = registry; IConfig hgConfig = config.Configs["HyperGrid"]; if (hgConfig == null || !hgConfig.GetBoolean("Enabled", false)) { return; } IConfig handlerConfig = config.Configs["Handlers"]; if (handlerConfig.GetString("AgentInfoHandler", "") != Name) { return; } registry.RegisterModuleInterface <IAgentInfoService>(this); Init(registry, Name); }
public void Initialize(Nini.Config.IConfigSource source) { _configSource = source; Preload(); }
private bool m_useAntiAliasing = true; // TODO: Make this a config option public void Initialise(Scene scene, Nini.Config.IConfigSource config) { m_scene = scene; m_config = config; }