diff --git a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs index 0280e15a6d..41ad3867bc 100644 --- a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs +++ b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs @@ -219,15 +219,19 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager LocalUserServices localuserService = new LocalUserServices( - m_openSim.NetServersInfo.DefaultHomeLocX, m_openSim.NetServersInfo.DefaultHomeLocY, inventoryService); - localuserService.AddPlugin(m_openSim.ConfigurationSettings.StandaloneUserPlugin, m_openSim.ConfigurationSettings.StandaloneUserSource); + m_openSim.NetServersInfo.DefaultHomeLocX, m_openSim.NetServersInfo.DefaultHomeLocY, + inventoryService); + localuserService.AddPlugin( + m_openSim.ConfigurationSettings.StandaloneUserPlugin, + m_openSim.ConfigurationSettings.StandaloneUserSource); - HGUserServices userService = new HGUserServices(localuserService); + HGUserServices userService = new HGUserServices(m_commsManager, localuserService); // This plugin arrangement could eventually be configurable rather than hardcoded here. - OGS1UserDataPlugin userDataPlugin = new OGS1UserDataPlugin(m_commsManager); - userService.AddPlugin(userDataPlugin); + userService.AddPlugin(new OGS1UserDataPlugin(m_commsManager)); - HGGridServicesStandalone gridService = new HGGridServicesStandalone(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager); + HGGridServicesStandalone gridService + = new HGGridServicesStandalone( + m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager); m_commsManager = new HGCommunicationsStandalone(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, userService, localuserService, inventoryService, gridService, userService, libraryRootFolder, m_openSim.ConfigurationSettings.DumpAssetsToFile); @@ -239,7 +243,6 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager CreateGridInfoService(); } - protected virtual void InitialiseHGGridServices(LibraryRootFolder libraryRootFolder) { m_commsManager = new HGCommunicationsGridMode(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager, libraryRootFolder); diff --git a/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs b/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs index 357d8a62d8..25c6341a8d 100644 --- a/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs +++ b/OpenSim/Region/Communications/Hypergrid/HGUserServices.cs @@ -52,14 +52,14 @@ namespace OpenSim.Region.Communications.Hypergrid private LocalUserServices m_localUserServices; // Constructor called when running in grid mode - public HGUserServices(CommunicationsManager parent) - : base(parent) + public HGUserServices(CommunicationsManager commsManager) + : base(commsManager) { } // Constructor called when running in standalone - public HGUserServices(LocalUserServices local) - : base(null) + public HGUserServices(CommunicationsManager commsManager, LocalUserServices local) + : base(commsManager) { m_localUserServices = local; }