mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
* Added the Login server handlers that were lost in yesterday's commit grief
* More beef to the LLLoginService * Better design for handling local simulation service
This commit is contained in:
@@ -37,7 +37,7 @@ namespace OpenSim.Server.Handlers.Simulation
|
||||
{
|
||||
public class SimulationServiceInConnector : ServiceConnector
|
||||
{
|
||||
private ISimulationService m_SimulationService;
|
||||
private ISimulationService m_LocalSimulationService;
|
||||
private IAuthenticationService m_AuthenticationService;
|
||||
|
||||
public SimulationServiceInConnector(IConfigSource config, IHttpServer server, IScene scene) :
|
||||
@@ -54,20 +54,16 @@ namespace OpenSim.Server.Handlers.Simulation
|
||||
// throw new Exception("No SimulationService in config file");
|
||||
|
||||
//Object[] args = new Object[] { config };
|
||||
m_SimulationService = scene.RequestModuleInterface<ISimulationService>();
|
||||
m_LocalSimulationService = scene.RequestModuleInterface<ISimulationService>();
|
||||
//ServerUtils.LoadPlugin<ISimulationService>(simService, args);
|
||||
if (m_SimulationService == null)
|
||||
throw new Exception("No Local ISimulationService Module");
|
||||
|
||||
|
||||
|
||||
//System.Console.WriteLine("XXXXXXXXXXXXXXXXXXX m_AssetSetvice == null? " + ((m_AssetService == null) ? "yes" : "no"));
|
||||
//server.AddStreamHandler(new AgentGetHandler(m_SimulationService, m_AuthenticationService));
|
||||
//server.AddStreamHandler(new AgentPostHandler(m_SimulationService, m_AuthenticationService));
|
||||
//server.AddStreamHandler(new AgentPutHandler(m_SimulationService, m_AuthenticationService));
|
||||
//server.AddStreamHandler(new AgentDeleteHandler(m_SimulationService, m_AuthenticationService));
|
||||
server.AddHTTPHandler("/agent/", new AgentHandler(m_SimulationService).Handler);
|
||||
server.AddHTTPHandler("/object/", new ObjectHandler(m_SimulationService).Handler);
|
||||
server.AddHTTPHandler("/agent/", new AgentHandler(m_LocalSimulationService).Handler);
|
||||
server.AddHTTPHandler("/object/", new ObjectHandler(m_LocalSimulationService).Handler);
|
||||
|
||||
//server.AddStreamHandler(new ObjectPostHandler(m_SimulationService, authentication));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user