* refactor: Remove the need to separately pass in the http listener to the scene - this is always available via CommsManager
parent
fde6a1665c
commit
b6ee2f15ba
|
@ -129,11 +129,12 @@ namespace OpenSim
|
|||
AgentCircuitManager circuitManager)
|
||||
{
|
||||
HGSceneCommunicationService sceneGridService = new HGSceneCommunicationService(m_commsManager, HGServices);
|
||||
|
||||
return
|
||||
new HGScene(regionInfo, circuitManager, m_commsManager, sceneGridService, m_assetCache,
|
||||
storageManager, m_httpServer,
|
||||
m_moduleLoader, m_configSettings.DumpAssetsToFile, m_configSettings.PhysicalPrim, m_configSettings.See_into_region_from_neighbor, m_config.Source,
|
||||
m_version);
|
||||
new HGScene(
|
||||
regionInfo, circuitManager, m_commsManager, sceneGridService, m_assetCache, storageManager,
|
||||
m_moduleLoader, m_configSettings.DumpAssetsToFile, m_configSettings.PhysicalPrim,
|
||||
m_configSettings.See_into_region_from_neighbor, m_config.Source, m_version);
|
||||
}
|
||||
|
||||
public override void RunCmd(string command, string[] cmdparams)
|
||||
|
|
|
@ -467,11 +467,11 @@ namespace OpenSim
|
|||
AgentCircuitManager circuitManager)
|
||||
{
|
||||
SceneCommunicationService sceneGridService = new SceneCommunicationService(m_commsManager);
|
||||
return
|
||||
new Scene(regionInfo, circuitManager, m_commsManager, sceneGridService, m_assetCache,
|
||||
storageManager, m_httpServer,
|
||||
m_moduleLoader, m_configSettings.DumpAssetsToFile, m_configSettings.PhysicalPrim, m_configSettings.See_into_region_from_neighbor, m_config.Source,
|
||||
m_version);
|
||||
|
||||
return new Scene(
|
||||
regionInfo, circuitManager, m_commsManager, sceneGridService, m_assetCache,
|
||||
storageManager, m_moduleLoader, m_configSettings.DumpAssetsToFile, m_configSettings.PhysicalPrim,
|
||||
m_configSettings.See_into_region_from_neighbor, m_config.Source, m_version);
|
||||
}
|
||||
|
||||
public void handleRestartRegion(RegionInfo whichRegion)
|
||||
|
|
|
@ -58,10 +58,10 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid
|
|||
|
||||
public HGScene(RegionInfo regInfo, AgentCircuitManager authen,
|
||||
CommunicationsManager commsMan, SceneCommunicationService sceneGridService,
|
||||
AssetCache assetCach, StorageManager storeManager, BaseHttpServer httpServer,
|
||||
AssetCache assetCach, StorageManager storeManager,
|
||||
ModuleLoader moduleLoader, bool dumpAssetsToFile, bool physicalPrim,
|
||||
bool SeeIntoRegionFromNeighbor, IConfigSource config, string simulatorVersion)
|
||||
: base(regInfo, authen, commsMan, sceneGridService, assetCach, storeManager, httpServer, moduleLoader,
|
||||
: base(regInfo, authen, commsMan, sceneGridService, assetCach, storeManager, moduleLoader,
|
||||
dumpAssetsToFile, physicalPrim, SeeIntoRegionFromNeighbor, config, simulatorVersion)
|
||||
{
|
||||
m_log.Info("[HGScene]: Starting HGScene.");
|
||||
|
|
|
@ -120,8 +120,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
/// </summary>
|
||||
protected Dictionary<UUID, Caps> m_capsHandlers = new Dictionary<UUID, Caps>();
|
||||
|
||||
protected BaseHttpServer m_httpListener;
|
||||
|
||||
/// <value>
|
||||
/// All the region modules attached to this scene.
|
||||
/// </value>
|
||||
|
@ -300,7 +298,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
public Scene(RegionInfo regInfo, AgentCircuitManager authen,
|
||||
CommunicationsManager commsMan, SceneCommunicationService sceneGridService,
|
||||
AssetCache assetCach, StorageManager storeManager, BaseHttpServer httpServer,
|
||||
AssetCache assetCach, StorageManager storeManager,
|
||||
ModuleLoader moduleLoader, bool dumpAssetsToFile, bool physicalPrim,
|
||||
bool SeeIntoRegionFromNeighbor, IConfigSource config, string simulatorVersion)
|
||||
{
|
||||
|
@ -351,7 +349,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
RegisterDefaultSceneEvents();
|
||||
|
||||
m_httpListener = httpServer;
|
||||
m_dumpAssetsToFile = dumpAssetsToFile;
|
||||
|
||||
m_scripts_enabled = !RegionInfo.RegionSettings.DisableScripts;
|
||||
|
@ -2874,8 +2871,11 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
return;
|
||||
}
|
||||
|
||||
cap = new Caps(AssetCache, m_httpListener, m_regInfo.ExternalHostName, m_httpListener.Port,
|
||||
capsObjectPath, agentId, m_dumpAssetsToFile, RegionInfo.RegionName);
|
||||
cap
|
||||
= new Caps(
|
||||
AssetCache, CommsManager.HttpServer, m_regInfo.ExternalHostName, CommsManager.HttpServer.Port,
|
||||
capsObjectPath, agentId, m_dumpAssetsToFile, RegionInfo.RegionName);
|
||||
|
||||
cap.RegisterHandlers();
|
||||
|
||||
EventManager.TriggerOnRegisterCaps(agentId, cap);
|
||||
|
|
|
@ -60,11 +60,10 @@ namespace OpenSim.Region.Environment.Scenes.Tests
|
|||
AssetCache ac = new AssetCache(assetService);
|
||||
|
||||
StorageManager sm = new OpenSim.Region.Environment.StorageManager("OpenSim.Data.Null.dll", "", "");
|
||||
BaseHttpServer httpServer = new BaseHttpServer(666);
|
||||
IConfigSource configSource = new IniConfigSource();
|
||||
|
||||
TestScene testScene = new TestScene(
|
||||
regInfo, acm, cm, scs, ac, sm, httpServer, null, false, false, false, configSource, null);
|
||||
regInfo, acm, cm, scs, ac, sm, null, false, false, false, configSource, null);
|
||||
|
||||
testScene.LandChannel = new TestLandChannel();
|
||||
testScene.LoadWorldMap();
|
||||
|
|
|
@ -53,7 +53,7 @@ namespace OpenSim.Tests.Common.Mock
|
|||
}
|
||||
|
||||
public TestCommunicationsManager(NetworkServersInfo serversInfo)
|
||||
: base(serversInfo, null, null, false, null)
|
||||
: base(serversInfo, new BaseHttpServer(666), null, false, null)
|
||||
{
|
||||
m_userDataPlugin = new TestUserDataPlugin();
|
||||
m_inventoryDataPlugin = new TestInventoryDataPlugin();
|
||||
|
|
|
@ -40,10 +40,10 @@ namespace OpenSim.Tests.Common.Mock
|
|||
public TestScene(
|
||||
RegionInfo regInfo, AgentCircuitManager authen,
|
||||
CommunicationsManager commsMan, SceneCommunicationService sceneGridService,
|
||||
AssetCache assetCach, StorageManager storeManager, BaseHttpServer httpServer,
|
||||
AssetCache assetCach, StorageManager storeManager,
|
||||
ModuleLoader moduleLoader, bool dumpAssetsToFile, bool physicalPrim,
|
||||
bool SeeIntoRegionFromNeighbor, IConfigSource config, string simulatorVersion)
|
||||
: base(regInfo, authen, commsMan, sceneGridService, assetCach, storeManager, httpServer, moduleLoader,
|
||||
: base(regInfo, authen, commsMan, sceneGridService, assetCach, storeManager, moduleLoader,
|
||||
dumpAssetsToFile, physicalPrim, SeeIntoRegionFromNeighbor, config, simulatorVersion)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue