public void Initialise(IConfigSource source) { IConfig moduleConfig = source.Configs["Modules"]; if (moduleConfig != null) { string name = moduleConfig.GetString("PresenceServices", ""); if (name == Name) { IConfig inventoryConfig = source.Configs["PresenceService"]; if (inventoryConfig == null) { m_log.Error("[LOCAL PRESENCE CONNECTOR]: PresenceService missing from OpenSim.ini"); return; } string serviceDll = inventoryConfig.GetString("LocalServiceModule", String.Empty); if (serviceDll == String.Empty) { m_log.Error("[LOCAL PRESENCE CONNECTOR]: No LocalServiceModule named in section PresenceService"); return; } Object[] args = new Object[] { source }; m_log.DebugFormat("[LOCAL PRESENCE CONNECTOR]: Service dll = {0}", serviceDll); m_PresenceService = ServerUtils.LoadPlugin <IPresenceService>(serviceDll, args); if (m_PresenceService == null) { m_log.Error("[LOCAL PRESENCE CONNECTOR]: Can't load presence service"); //return; throw new Exception("Unable to proceed. Please make sure your ini files in config-include are updated according to .example's"); } //Init(source); m_PresenceDetector = new PresenceDetector(this); m_Enabled = true; m_log.Info("[LOCAL PRESENCE CONNECTOR]: Local presence connector enabled"); } } }
public void Initialise(IConfigSource source) { IConfig moduleConfig = source.Configs["Modules"]; if (moduleConfig != null) { string name = moduleConfig.GetString("PresenceServices", ""); if (name == Name) { m_PresenceService = new PresenceServicesConnector(source); m_Enabled = true; m_PresenceDetector = new PresenceDetector(this); m_log.Info("[REMOTE PRESENCE CONNECTOR]: Remote presence enabled"); } } }
public void Initialise(IConfigSource source) { IConfig moduleConfig = source.Configs["Modules"]; if (moduleConfig != null) { string name = moduleConfig.GetString("PresenceServices", ""); if (name == Name) { IConfig inventoryConfig = source.Configs["PresenceService"]; if (inventoryConfig == null) { m_log.Error("[LOCAL PRESENCE CONNECTOR]: PresenceService missing from OpenSim.ini"); return; } string serviceDll = inventoryConfig.GetString("LocalServiceModule", String.Empty); if (serviceDll == String.Empty) { m_log.Error("[LOCAL PRESENCE CONNECTOR]: No LocalServiceModule named in section PresenceService"); return; } Object[] args = new Object[] { source }; m_log.DebugFormat("[LOCAL PRESENCE CONNECTOR]: Service dll = {0}", serviceDll); m_PresenceService = ServerUtils.LoadPlugin<IPresenceService>(serviceDll, args); if (m_PresenceService == null) { m_log.Error("[LOCAL PRESENCE CONNECTOR]: Can't load presence service"); //return; throw new Exception("Unable to proceed. Please make sure your ini files in config-include are updated according to .example's"); } //Init(source); m_PresenceDetector = new PresenceDetector(this); m_Enabled = true; m_log.Info("[LOCAL PRESENCE CONNECTOR]: Local presence connector enabled"); } } }