aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs
diff options
context:
space:
mode:
authorMelanie Thielker2009-07-10 02:22:26 +0000
committerMelanie Thielker2009-07-10 02:22:26 +0000
commitc310fb11f492419de60b4bf8e5bb234e4589b336 (patch)
treea7bccfad7cde51ec830fdad59d5729091b2e69ae /OpenSim/Region/Communications/Hypergrid/HGGridServices.cs
parentCreate a MainServer static class to access the regions server's HTTP server (diff)
downloadopensim-SC-c310fb11f492419de60b4bf8e5bb234e4589b336.zip
opensim-SC-c310fb11f492419de60b4bf8e5bb234e4589b336.tar.gz
opensim-SC-c310fb11f492419de60b4bf8e5bb234e4589b336.tar.bz2
opensim-SC-c310fb11f492419de60b4bf8e5bb234e4589b336.tar.xz
Remove all references to HttpServer from CommsManager (all incarnations)
Change all uses of the HttpServer properties to use the new singleton
Diffstat (limited to 'OpenSim/Region/Communications/Hypergrid/HGGridServices.cs')
-rw-r--r--OpenSim/Region/Communications/Hypergrid/HGGridServices.cs11
1 files changed, 3 insertions, 8 deletions
diff --git a/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs b/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs
index 58711e5..54cde0f 100644
--- a/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs
+++ b/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs
@@ -63,7 +63,6 @@ namespace OpenSim.Region.Communications.Hypergrid
63 63
64 public BaseHttpServer httpListener; 64 public BaseHttpServer httpListener;
65 public NetworkServersInfo serversInfo; 65 public NetworkServersInfo serversInfo;
66 public BaseHttpServer httpServer;
67 66
68 protected List<RegionInfo> m_regionsOnInstance = new List<RegionInfo>(); 67 protected List<RegionInfo> m_regionsOnInstance = new List<RegionInfo>();
69 68
@@ -76,7 +75,6 @@ namespace OpenSim.Region.Communications.Hypergrid
76 // This is key-ed on agent ID 75 // This is key-ed on agent ID
77 protected Dictionary<UUID, RegionInfo> m_knownRegions = new Dictionary<UUID, RegionInfo>(); 76 protected Dictionary<UUID, RegionInfo> m_knownRegions = new Dictionary<UUID, RegionInfo>();
78 77
79 protected IAssetCache m_assetcache;
80 protected UserProfileCacheService m_userProfileCache; 78 protected UserProfileCacheService m_userProfileCache;
81 protected SceneManager m_sceneman; 79 protected SceneManager m_sceneman;
82 80
@@ -112,18 +110,15 @@ namespace OpenSim.Region.Communications.Hypergrid
112 /// Contructor. Adds "expect_hg_user" and "check" xmlrpc method handlers 110 /// Contructor. Adds "expect_hg_user" and "check" xmlrpc method handlers
113 /// </summary> 111 /// </summary>
114 /// <param name="servers_info"></param> 112 /// <param name="servers_info"></param>
115 /// <param name="httpServe"></param> 113 public HGGridServices(NetworkServersInfo servers_info, SceneManager sman)
116 public HGGridServices(NetworkServersInfo servers_info, BaseHttpServer httpServe, IAssetCache asscache, SceneManager sman)
117 { 114 {
118 serversInfo = servers_info; 115 serversInfo = servers_info;
119 httpServer = httpServe;
120 m_assetcache = asscache;
121 m_sceneman = sman; 116 m_sceneman = sman;
122 117
123 random = new Random(); 118 random = new Random();
124 119
125 httpServer.AddXmlRPCHandler("link_region", LinkRegionRequest); 120 MainServer.Instance.AddXmlRPCHandler("link_region", LinkRegionRequest);
126 httpServer.AddXmlRPCHandler("expect_hg_user", ExpectHGUser); 121 MainServer.Instance.AddXmlRPCHandler("expect_hg_user", ExpectHGUser);
127 122
128 HGNetworkServersInfo.Init(servers_info.AssetURL, servers_info.InventoryURL, servers_info.UserURL); 123 HGNetworkServersInfo.Init(servers_info.AssetURL, servers_info.InventoryURL, servers_info.UserURL);
129 } 124 }