diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 93cc0a7ae8..f1ff08ff03 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -178,10 +178,7 @@ namespace OpenSim else { // We are in grid mode - m_commsManager - = new CommunicationsOGS1(m_networkServersInfo, m_httpServer, m_assetCache, libraryRootFolder); - - m_httpServer.AddStreamHandler(new SimStatusHandler()); + InitialiseGridServices(libraryRootFolder); } proxyUrl = ConfigSource.Source.Configs["Network"].GetString("proxy_url", ""); @@ -200,7 +197,7 @@ namespace OpenSim /// Initialises the backend services for standalone mode, and registers some http handlers /// /// - protected void InitialiseStandaloneServices(LibraryRootFolder libraryRootFolder) + protected virtual void InitialiseStandaloneServices(LibraryRootFolder libraryRootFolder) { LocalInventoryService inventoryService = new LocalInventoryService(); inventoryService.AddPlugin(m_configSettings.StandaloneInventoryPlugin, m_configSettings.StandaloneInventorySource); @@ -239,6 +236,14 @@ namespace OpenSim m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/get_grid_info", m_gridInfoService.RestGetGridInfoMethod)); } + protected virtual void InitialiseGridServices(LibraryRootFolder libraryRootFolder) + { + m_commsManager + = new CommunicationsOGS1(m_networkServersInfo, m_httpServer, m_assetCache, libraryRootFolder); + + m_httpServer.AddStreamHandler(new SimStatusHandler()); + } + protected override void Initialize() { //