aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
diff options
context:
space:
mode:
authorMW2007-10-03 07:50:07 +0000
committerMW2007-10-03 07:50:07 +0000
commit652654176a9f410cbdb0afced0297dc1997f5bb5 (patch)
treee5cc5ece9a76e13ffe7a47603aef37ad0fa5956b /OpenSim/Region/Communications/Local/CommunicationsLocal.cs
parentSome continuation of lbsa71's refactoring of the CommunicationsManager. (diff)
downloadopensim-SC_OLD-652654176a9f410cbdb0afced0297dc1997f5bb5.zip
opensim-SC_OLD-652654176a9f410cbdb0afced0297dc1997f5bb5.tar.gz
opensim-SC_OLD-652654176a9f410cbdb0afced0297dc1997f5bb5.tar.bz2
opensim-SC_OLD-652654176a9f410cbdb0afced0297dc1997f5bb5.tar.xz
more refactoring
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Communications/Local/CommunicationsLocal.cs26
1 files changed, 3 insertions, 23 deletions
diff --git a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
index f51f564..7a00c5a 100644
--- a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
+++ b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
@@ -39,34 +39,14 @@ namespace OpenSim.Region.Communications.Local
39{ 39{
40 public class CommunicationsLocal : CommunicationsManager 40 public class CommunicationsLocal : CommunicationsManager
41 { 41 {
42 public CommunicationsLocal(NetworkServersInfo serversInfo, BaseHttpServer httpServer, AssetCache assetCache, LocalSettings settings, LocalUserServices userService, LocalInventoryService inventoryService) 42 public CommunicationsLocal(NetworkServersInfo serversInfo, BaseHttpServer httpServer, AssetCache assetCache, LocalUserServices userService, LocalInventoryService inventoryService, IInterRegionCommunications interRegionService, IGridServices gridService)
43 : base(serversInfo, httpServer, assetCache) 43 : base(serversInfo, httpServer, assetCache)
44 { 44 {
45 m_inventoryService = inventoryService; 45 m_inventoryService = inventoryService;
46 m_userService = userService; 46 m_userService = userService;
47 m_gridService = gridService;
48 m_interRegion = interRegionService;
47 49
48 LocalBackEndServices backendService = new LocalBackEndServices();
49 m_gridService = backendService;
50 m_interRegion = backendService;
51
52 LocalLoginService loginService = new LocalLoginService(userService, settings.WelcomeMessage, this, serversInfo, settings.AccountAuthentication);
53 loginService.OnLoginToRegion += backendService.AddNewSession;
54
55 httpServer.AddXmlRPCHandler("login_to_simulator", loginService.XmlRpcLoginMethod);
56 }
57
58
59
60 public class LocalSettings
61 {
62 public string WelcomeMessage;
63 public bool AccountAuthentication = false;
64
65 public LocalSettings(string welcomeMessage, bool accountsAuthenticate)
66 {
67 WelcomeMessage = welcomeMessage;
68 AccountAuthentication = accountsAuthenticate;
69 }
70 } 50 }
71 51
72 } 52 }