* Resolve http://opensimulator.org/mantis/view.php?id=3509 by passing up the comms manager rather than null
							parent
							
								
									c25ceb009e
								
							
						
					
					
						commit
						4254733e8a
					
				| 
						 | 
				
			
			@ -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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue