30 using System.Collections.Generic;
31 using System.Reflection;
33 using OpenSim.Region.Framework.Interfaces;
34 using OpenSim.Region.Framework.Scenes;
35 using OpenSim.Server.Base;
36 using OpenSim.Services.Interfaces;
37 using OpenSim.Services.Connectors;
44 namespace OpenSim.
Region.CoreModules.ServiceConnectorsOut.AgentPreferences
46 [Extension(Path =
"/OpenSim/RegionModules", NodeName =
"RegionModule", Id =
"RemoteAgentPreferencesServicesConnector")]
50 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
52 private bool m_Enabled =
false;
54 public Type ReplaceableInterface
61 get {
return "RemoteAgentPreferencesServicesConnector"; }
66 IConfig moduleConfig = source.Configs[
"Modules"];
67 if (moduleConfig != null)
69 string name = moduleConfig.GetString(
"AgentPreferencesServices",
"");
72 IConfig userConfig = source.Configs[
"AgentPreferencesService"];
73 if (userConfig == null)
75 m_log.Error(
"[AGENT PREFERENCES CONNECTOR]: AgentPreferencesService missing from OpenSim.ini");
81 base.Initialise(source);
83 m_log.Info(
"[AGENT PREFERENCES CONNECTOR]: Remote agent preferences enabled");
override void Initialise(IConfigSource source)
void PostInitialise()
This is called exactly once after all the shared region-modules have been instanciated and IRegionMod...
void AddRegion(Scene scene)
This is called whenever a Scene is added. For shared modules, this can happen several times...
void Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...
void RegionLoaded(Scene scene)
This will be called once for every scene loaded. In a shared module this will be multiple times in on...
void RemoveRegion(Scene scene)
This is called whenever a Scene is removed. For shared modules, this can happen several times...