aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/UserServer')
-rw-r--r--OpenSim/Grid/UserServer/Main.cs3
-rw-r--r--OpenSim/Grid/UserServer/UserLoginService.cs12
2 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs
index 3f75838..70aaea3 100644
--- a/OpenSim/Grid/UserServer/Main.cs
+++ b/OpenSim/Grid/UserServer/Main.cs
@@ -32,6 +32,7 @@ using System.Reflection;
32using log4net; 32using log4net;
33using log4net.Config; 33using log4net.Config;
34using OpenMetaverse; 34using OpenMetaverse;
35using OpenSim.Data;
35using OpenSim.Framework; 36using OpenSim.Framework;
36using OpenSim.Framework.Communications; 37using OpenSim.Framework.Communications;
37using OpenSim.Framework.Communications.Cache; 38using OpenSim.Framework.Communications.Cache;
@@ -167,7 +168,7 @@ namespace OpenSim.Grid.UserServer
167 protected virtual void StartupLoginService(IInterServiceInventoryServices inventoryService) 168 protected virtual void StartupLoginService(IInterServiceInventoryServices inventoryService)
168 { 169 {
169 m_loginService = new UserLoginService( 170 m_loginService = new UserLoginService(
170 m_userManager, inventoryService, new LibraryRootFolder(Cfg.LibraryXmlfile), Cfg, Cfg.DefaultStartupMsg); 171 m_userManager, inventoryService, new LibraryRootFolder(Cfg.LibraryXmlfile), Cfg, Cfg.DefaultStartupMsg, new RegionProfileService());
171 } 172 }
172 173
173 protected virtual void AddHttpHandlers() 174 protected virtual void AddHttpHandlers()
diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs
index 7dce157..b11714a 100644
--- a/OpenSim/Grid/UserServer/UserLoginService.cs
+++ b/OpenSim/Grid/UserServer/UserLoginService.cs
@@ -59,15 +59,17 @@ namespace OpenSim.Grid.UserServer
59 private UserLoggedInAtLocation handlerUserLoggedInAtLocation; 59 private UserLoggedInAtLocation handlerUserLoggedInAtLocation;
60 60
61 public UserConfig m_config; 61 public UserConfig m_config;
62 private readonly RegionProfileService m_regionProfileService;
62 63
63 public UserLoginService( 64 public UserLoginService(
64 UserManagerBase userManager, IInterServiceInventoryServices inventoryService, 65 UserManagerBase userManager, IInterServiceInventoryServices inventoryService,
65 LibraryRootFolder libraryRootFolder, 66 LibraryRootFolder libraryRootFolder,
66 UserConfig config, string welcomeMess) 67 UserConfig config, string welcomeMess, RegionProfileService regionProfileService)
67 : base(userManager, libraryRootFolder, welcomeMess) 68 : base(userManager, libraryRootFolder, welcomeMess)
68 { 69 {
69 m_config = config; 70 m_config = config;
70 m_inventoryService = inventoryService; 71 m_inventoryService = inventoryService;
72 m_regionProfileService = regionProfileService;
71 } 73 }
72 74
73 public void setloginlevel(int level) 75 public void setloginlevel(int level)
@@ -86,7 +88,7 @@ namespace OpenSim.Grid.UserServer
86 RegionProfileData SimInfo; 88 RegionProfileData SimInfo;
87 try 89 try
88 { 90 {
89 SimInfo = RegionProfileService.RequestSimProfileData( 91 SimInfo = m_regionProfileService.RequestSimProfileData(
90 theUser.CurrentAgent.Handle, m_config.GridServerURL, 92 theUser.CurrentAgent.Handle, m_config.GridServerURL,
91 m_config.GridSendKey, m_config.GridRecvKey); 93 m_config.GridSendKey, m_config.GridRecvKey);
92 94
@@ -302,20 +304,20 @@ namespace OpenSim.Grid.UserServer
302 304
303 protected RegionProfileData RequestClosestRegion(string region) 305 protected RegionProfileData RequestClosestRegion(string region)
304 { 306 {
305 return RegionProfileService.RequestSimProfileData(region, 307 return m_regionProfileService.RequestSimProfileData(region,
306 m_config.GridServerURL, m_config.GridSendKey, m_config.GridRecvKey); 308 m_config.GridServerURL, m_config.GridSendKey, m_config.GridRecvKey);
307 } 309 }
308 310
309 protected RegionProfileData GetRegionInfo(ulong homeRegionHandle) 311 protected RegionProfileData GetRegionInfo(ulong homeRegionHandle)
310 { 312 {
311 return RegionProfileService.RequestSimProfileData(homeRegionHandle, 313 return m_regionProfileService.RequestSimProfileData(homeRegionHandle,
312 m_config.GridServerURL, m_config.GridSendKey, 314 m_config.GridServerURL, m_config.GridSendKey,
313 m_config.GridRecvKey); 315 m_config.GridRecvKey);
314 } 316 }
315 317
316 protected RegionProfileData GetRegionInfo(UUID homeRegionId) 318 protected RegionProfileData GetRegionInfo(UUID homeRegionId)
317 { 319 {
318 return RegionProfileService.RequestSimProfileData(homeRegionId, 320 return m_regionProfileService.RequestSimProfileData(homeRegionId,
319 m_config.GridServerURL, m_config.GridSendKey, 321 m_config.GridServerURL, m_config.GridSendKey,
320 m_config.GridRecvKey); 322 m_config.GridRecvKey);
321 } 323 }