aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer/Main.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/UserServer/Main.cs')
-rw-r--r--OpenSim/Grid/UserServer/Main.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs
index c2822b6..28635dd 100644
--- a/OpenSim/Grid/UserServer/Main.cs
+++ b/OpenSim/Grid/UserServer/Main.cs
@@ -36,6 +36,8 @@ using OpenSim.Framework.Interfaces;
36using OpenSim.Framework.Servers; 36using OpenSim.Framework.Servers;
37using OpenSim.Framework.Utilities; 37using OpenSim.Framework.Utilities;
38using OpenSim.Framework.Configuration; 38using OpenSim.Framework.Configuration;
39using OpenSim.Framework.Communications;
40using OpenSim.Region.Communications.OGS1;
39 41
40namespace OpenSim.Grid.UserServer 42namespace OpenSim.Grid.UserServer
41{ 43{
@@ -48,6 +50,8 @@ namespace OpenSim.Grid.UserServer
48 public UserManager m_userManager; 50 public UserManager m_userManager;
49 public UserLoginService m_loginService; 51 public UserLoginService m_loginService;
50 52
53 public IInventoryServices m_inventoryService;
54
51 LogBase m_console; 55 LogBase m_console;
52 56
53 [STAThread] 57 [STAThread]
@@ -90,7 +94,11 @@ namespace OpenSim.Grid.UserServer
90 m_userManager._config = Cfg; 94 m_userManager._config = Cfg;
91 m_userManager.AddPlugin(Cfg.DatabaseProvider); 95 m_userManager.AddPlugin(Cfg.DatabaseProvider);
92 96
93 m_loginService = new UserLoginService(m_userManager, Cfg, Cfg.DefaultStartupMsg); 97 // prepare connection to the inventory server
98 m_inventoryService = new OGS1InventoryService(Cfg.InventoryServerName, Cfg.InventoryServerPort, null);
99
100
101 m_loginService = new UserLoginService(m_userManager, m_inventoryService, Cfg, Cfg.DefaultStartupMsg);
94 102
95 MainLog.Instance.Verbose("Main.cs:Startup() - Starting HTTP process"); 103 MainLog.Instance.Verbose("Main.cs:Startup() - Starting HTTP process");
96 BaseHttpServer httpServer = new BaseHttpServer((int)Cfg.HttpPort); 104 BaseHttpServer httpServer = new BaseHttpServer((int)Cfg.HttpPort);
@@ -103,6 +111,7 @@ namespace OpenSim.Grid.UserServer
103 httpServer.AddStreamHandler( new RestStreamHandler("DELETE", "/usersessions/", m_userManager.RestDeleteUserSessionMethod )); 111 httpServer.AddStreamHandler( new RestStreamHandler("DELETE", "/usersessions/", m_userManager.RestDeleteUserSessionMethod ));
104 112
105 httpServer.Start(); 113 httpServer.Start();
114
106 m_console.Status("SERVER", "Userserver 0.3 - Startup complete"); 115 m_console.Status("SERVER", "Userserver 0.3 - Startup complete");
107 } 116 }
108 117