aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples/SimpleApp/Program.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/Examples/SimpleApp/Program.cs
parentSome continuation of lbsa71's refactoring of the CommunicationsManager. (diff)
downloadopensim-SC-652654176a9f410cbdb0afced0297dc1997f5bb5.zip
opensim-SC-652654176a9f410cbdb0afced0297dc1997f5bb5.tar.gz
opensim-SC-652654176a9f410cbdb0afced0297dc1997f5bb5.tar.bz2
opensim-SC-652654176a9f410cbdb0afced0297dc1997f5bb5.tar.xz
more refactoring
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/Program.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs
index 5f39413..e05ce87 100644
--- a/OpenSim/Region/Examples/SimpleApp/Program.cs
+++ b/OpenSim/Region/Examples/SimpleApp/Program.cs
@@ -40,13 +40,18 @@ namespace SimpleApp
40 public void Run() 40 public void Run()
41 { 41 {
42 base.StartUp(); 42 base.StartUp();
43 43
44 CommunicationsLocal.LocalSettings settings = new CommunicationsLocal.LocalSettings("", false);
45
46 LocalInventoryService inventoryService = new LocalInventoryService(); 44 LocalInventoryService inventoryService = new LocalInventoryService();
47 LocalUserServices userService = new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX, m_networkServersInfo.DefaultHomeLocY, inventoryService); 45 LocalUserServices userService = new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX, m_networkServersInfo.DefaultHomeLocY, inventoryService);
46 LocalBackEndServices backendService = new LocalBackEndServices();
47
48 CommunicationsLocal localComms = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, userService, inventoryService, backendService, backendService);
49 m_commsManager = localComms;
50
51 LocalLoginService loginService = new LocalLoginService(userService, "", localComms, m_networkServersInfo, false);
52 loginService.OnLoginToRegion += backendService.AddNewSession;
48 53
49 m_commsManager = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, settings, userService, inventoryService ); 54 m_httpServer.AddXmlRPCHandler("login_to_simulator", loginService.XmlRpcLoginMethod);
50 55
51 m_log.Notice(m_log.LineInfo); 56 m_log.Notice(m_log.LineInfo);
52 57