public void Initialise(IConfigSource source) { IConfig moduleConfig = source.Configs["Modules"]; if (moduleConfig != null) { string name = moduleConfig.GetString("GridUserServices", ""); if (name == Name) { m_RemoteConnector = new GridUserServicesConnector(source); m_Enabled = true; m_ActivityDetector = new ActivityDetector(this); m_log.Info("[REMOTE GRID USER CONNECTOR]: Remote grid user enabled"); } } }
public void Initialise(IConfigSource source) { IConfig moduleConfig = source.Configs["Modules"]; if (moduleConfig != null) { string name = moduleConfig.GetString("GridUserServices", ""); if (name == Name) { m_RemoteConnector = new GridUserServicesConnector(source); m_Enabled = true; m_ActivityDetector = new ActivityDetector(this); m_log.Info("[REMOTE GRID USER CONNECTOR]: Remote grid user enabled"); } } }
public void Initialise(IConfigSource source) { IConfig moduleConfig = source.Configs["Modules"]; if (moduleConfig != null) { string name = moduleConfig.GetString("GridUserServices", ""); if (name == Name) { IConfig userConfig = source.Configs["GridUserService"]; if (userConfig == null) { m_log.Error("[LOCAL GRID USER SERVICE CONNECTOR]: GridUserService missing from OpenSim.ini"); return; } string serviceDll = userConfig.GetString("LocalServiceModule", String.Empty); if (serviceDll == String.Empty) { m_log.Error("[LOCAL GRID USER SERVICE CONNECTOR]: No LocalServiceModule named in section GridUserService"); return; } Object[] args = new Object[] { source }; m_GridUserService = ServerUtils.LoadPlugin <IGridUserService>(serviceDll, args); if (m_GridUserService == null) { m_log.ErrorFormat( "[LOCAL GRID USER SERVICE CONNECTOR]: Cannot load user account service specified as {0}", serviceDll); return; } m_ActivityDetector = new ActivityDetector(this); m_Enabled = true; m_log.Info("[LOCAL GRID USER SERVICE CONNECTOR]: Local grid user connector enabled"); } } }
public void Initialise(IConfigSource source) { IConfig moduleConfig = source.Configs["Modules"]; if (moduleConfig != null) { string name = moduleConfig.GetString("GridUserServices", ""); if (name == Name) { IConfig userConfig = source.Configs["GridUserService"]; if (userConfig == null) { m_log.Error("[LOCAL GRID USER SERVICE CONNECTOR]: GridUserService missing from OpenSim.ini"); return; } string serviceDll = userConfig.GetString("LocalServiceModule", String.Empty); if (serviceDll == String.Empty) { m_log.Error("[LOCAL GRID USER SERVICE CONNECTOR]: No LocalServiceModule named in section GridUserService"); return; } Object[] args = new Object[] { source }; m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(serviceDll, args); if (m_GridUserService == null) { m_log.ErrorFormat( "[LOCAL GRID USER SERVICE CONNECTOR]: Cannot load user account service specified as {0}", serviceDll); return; } m_ActivityDetector = new ActivityDetector(this); m_Enabled = true; m_log.Info("[LOCAL GRID USER SERVICE CONNECTOR]: Local grid user connector enabled"); } } }