From 652654176a9f410cbdb0afced0297dc1997f5bb5 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 3 Oct 2007 07:50:07 +0000 Subject: more refactoring --- OpenSim/Region/Application/OpenSimMain.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 04b8dce..637246e 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -159,17 +159,24 @@ namespace OpenSim if (m_sandbox) { - CommunicationsLocal.LocalSettings settings = new CommunicationsLocal.LocalSettings(standaloneWelcomeMessage, standaloneAuthenticate); - LocalInventoryService inventoryService = new LocalInventoryService(); inventoryService.AddPlugin(standaloneInventoryPlugin); - + LocalUserServices userService = new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX, m_networkServersInfo.DefaultHomeLocY, inventoryService ); userService.AddPlugin( standaloneUserPlugin ); - CommunicationsLocal localComms = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, settings, userService, inventoryService); + LocalBackEndServices backendService = new LocalBackEndServices(); + + CommunicationsLocal localComms = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, userService, inventoryService, backendService, backendService); m_commsManager = localComms; + + LocalLoginService loginService = new LocalLoginService(userService, standaloneWelcomeMessage, localComms, m_networkServersInfo, standaloneAuthenticate); + loginService.OnLoginToRegion += backendService.AddNewSession; + + m_httpServer.AddXmlRPCHandler("login_to_simulator", loginService.XmlRpcLoginMethod); + + if (standaloneAuthenticate) { this.CreateAccount = localComms.doCreate; -- cgit v1.1