29 using System.Reflection;
30 using System.Collections.Generic;
34 using OpenSim.Framework;
35 using OpenSim.Framework.Servers;
36 using OpenSim.Region.Framework.Scenes;
37 using OpenSim.Region.Framework.Interfaces;
38 using OpenSim.Server.Base;
39 using OpenSim.Server.Handlers.Base;
40 using OpenSim.Server.Handlers.Authentication;
41 using OpenSim.Services.Interfaces;
45 [Extension(Path =
"/OpenSim/RegionModules", NodeName =
"RegionModule", Id =
"AuthenticationServiceInConnectorModule")]
48 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
49 private static bool m_Enabled =
false;
51 private IConfigSource m_Config;
52 bool m_Registered =
false;
54 #region Region Module interface
59 IConfig moduleConfig = config.Configs[
"Modules"];
60 if (moduleConfig != null)
62 m_Enabled = moduleConfig.GetBoolean(
"AuthenticationServiceInConnector",
false);
65 m_log.Info(
"[AUTHENTICATION IN CONNECTOR]: Authentication Service In Connector enabled");
80 public Type ReplaceableInterface
87 get {
return "AuthenticationServiceInConnectorModule"; }
111 m_log.Info(
"[AUTHENTICATION IN CONNECTOR]: Starting...");
void Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...
void Initialise(IConfigSource config)
This is called to initialize the region module. For shared modules, this is called exactly once...
void RegionLoaded(Scene scene)
This will be called once for every scene loaded. In a shared module this will be multiple times in on...
Interactive OpenSim region server
void PostInitialise()
This is called exactly once after all the shared region-modules have been instanciated and IRegionMod...
static BaseHttpServer Instance
Set the main HTTP server instance.
void AddRegion(Scene scene)
This is called whenever a Scene is added. For shared modules, this can happen several times...
void RemoveRegion(Scene scene)
This is called whenever a Scene is removed. For shared modules, this can happen several times...