diff options
author | Justin Clarke Casey | 2009-03-19 18:11:44 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-03-19 18:11:44 +0000 |
commit | bd2180d9af21dd54d4199a9381afa3e43e913823 (patch) | |
tree | 7f82f0dd30e24d8eaa4f8cbb2493cb2f3f1c637f /OpenSim/Region | |
parent | * Lock http handlers dictionary in other places as well to avoid race conditions (diff) | |
download | opensim-SC_OLD-bd2180d9af21dd54d4199a9381afa3e43e913823.zip opensim-SC_OLD-bd2180d9af21dd54d4199a9381afa3e43e913823.tar.gz opensim-SC_OLD-bd2180d9af21dd54d4199a9381afa3e43e913823.tar.bz2 opensim-SC_OLD-bd2180d9af21dd54d4199a9381afa3e43e913823.tar.xz |
* refactor: Create IHttpServer interface instead of accessing BaseHttpServer via CommunicationsManager directly
Diffstat (limited to '')
3 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs b/OpenSim/Region/CoreModules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs index 488e55b..a50eb2d 100644 --- a/OpenSim/Region/CoreModules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs | |||
@@ -38,7 +38,7 @@ using Nwc.XmlRpc; | |||
38 | using OpenMetaverse; | 38 | using OpenMetaverse; |
39 | using OpenSim.Framework; | 39 | using OpenSim.Framework; |
40 | using OpenSim.Framework.Communications.Cache; | 40 | using OpenSim.Framework.Communications.Cache; |
41 | using OpenSim.Framework.Servers; | 41 | using OpenSim.Framework.Servers.Interfaces; |
42 | using OpenSim.Region.Framework.Interfaces; | 42 | using OpenSim.Region.Framework.Interfaces; |
43 | using OpenSim.Region.Framework.Scenes; | 43 | using OpenSim.Region.Framework.Scenes; |
44 | 44 | ||
@@ -133,7 +133,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Currency.SampleMoney | |||
133 | if (m_enabled) | 133 | if (m_enabled) |
134 | { | 134 | { |
135 | scene.RegisterModuleInterface<IMoneyModule>(this); | 135 | scene.RegisterModuleInterface<IMoneyModule>(this); |
136 | BaseHttpServer httpServer = scene.CommsManager.HttpServer; | 136 | IHttpServer httpServer = scene.CommsManager.HttpServer; |
137 | 137 | ||
138 | lock (m_scenel) | 138 | lock (m_scenel) |
139 | { | 139 | { |
diff --git a/OpenSim/Region/CoreModules/Hypergrid/HGStandaloneAssetService.cs b/OpenSim/Region/CoreModules/Hypergrid/HGStandaloneAssetService.cs index f8c7c79..4baefc4 100644 --- a/OpenSim/Region/CoreModules/Hypergrid/HGStandaloneAssetService.cs +++ b/OpenSim/Region/CoreModules/Hypergrid/HGStandaloneAssetService.cs | |||
@@ -35,6 +35,7 @@ using OpenSim.Framework; | |||
35 | using OpenSim.Framework.Communications; | 35 | using OpenSim.Framework.Communications; |
36 | using OpenSim.Framework.Communications.Cache; | 36 | using OpenSim.Framework.Communications.Cache; |
37 | using OpenSim.Framework.Servers; | 37 | using OpenSim.Framework.Servers; |
38 | using OpenSim.Framework.Servers.Interfaces; | ||
38 | using OpenSim.Region.Framework.Interfaces; | 39 | using OpenSim.Region.Framework.Interfaces; |
39 | using OpenSim.Region.Framework.Scenes; | 40 | using OpenSim.Region.Framework.Scenes; |
40 | 41 | ||
@@ -116,7 +117,7 @@ namespace OpenSim.Region.CoreModules.Hypergrid | |||
116 | IAssetDataPlugin m_assetProvider | 117 | IAssetDataPlugin m_assetProvider |
117 | = ((AssetServerBase)m_scene.CommsManager.AssetCache.AssetServer).AssetProviderPlugin; | 118 | = ((AssetServerBase)m_scene.CommsManager.AssetCache.AssetServer).AssetProviderPlugin; |
118 | 119 | ||
119 | BaseHttpServer httpServer = m_scene.CommsManager.HttpServer; | 120 | IHttpServer httpServer = m_scene.CommsManager.HttpServer; |
120 | httpServer.AddStreamHandler(new GetAssetStreamHandler(m_assetProvider)); | 121 | httpServer.AddStreamHandler(new GetAssetStreamHandler(m_assetProvider)); |
121 | httpServer.AddStreamHandler(new PostAssetStreamHandler(m_assetProvider)); | 122 | httpServer.AddStreamHandler(new PostAssetStreamHandler(m_assetProvider)); |
122 | 123 | ||
diff --git a/OpenSim/Region/CoreModules/Hypergrid/HGStandaloneInventoryService.cs b/OpenSim/Region/CoreModules/Hypergrid/HGStandaloneInventoryService.cs index 6ad032e..cff3611 100644 --- a/OpenSim/Region/CoreModules/Hypergrid/HGStandaloneInventoryService.cs +++ b/OpenSim/Region/CoreModules/Hypergrid/HGStandaloneInventoryService.cs | |||
@@ -35,6 +35,7 @@ using OpenMetaverse; | |||
35 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
36 | using OpenSim.Framework.Communications; | 36 | using OpenSim.Framework.Communications; |
37 | using OpenSim.Framework.Servers; | 37 | using OpenSim.Framework.Servers; |
38 | using OpenSim.Framework.Servers.Interfaces; | ||
38 | using OpenSim.Region.Framework.Interfaces; | 39 | using OpenSim.Region.Framework.Interfaces; |
39 | using OpenSim.Region.Framework.Scenes; | 40 | using OpenSim.Region.Framework.Scenes; |
40 | 41 | ||
@@ -114,7 +115,7 @@ namespace OpenSim.Region.CoreModules.Hypergrid | |||
114 | 115 | ||
115 | protected void AddHttpHandlers(Scene m_scene) | 116 | protected void AddHttpHandlers(Scene m_scene) |
116 | { | 117 | { |
117 | BaseHttpServer httpServer = m_scene.CommsManager.HttpServer; | 118 | IHttpServer httpServer = m_scene.CommsManager.HttpServer; |
118 | 119 | ||
119 | httpServer.AddStreamHandler( | 120 | httpServer.AddStreamHandler( |
120 | new RestDeserialiseSecureHandler<Guid, InventoryCollection>( | 121 | new RestDeserialiseSecureHandler<Guid, InventoryCollection>( |