12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using System;
- using Nini.Config;
- using OpenSim.Server.Base;
- using OpenSim.Services.Interfaces;
- using OpenSim.Framework;
- using OpenSim.Framework.Servers.HttpServer;
- using OpenSim.Server.Handlers.Base;
- namespace OpenSim.Server.Handlers.Simulation
- {
- public class SimulationServiceInConnector : ServiceConnector
- {
- private ISimulationService m_LocalSimulationService;
- public SimulationServiceInConnector(IConfigSource config, IHttpServer server, IScene scene) :
- base(config, server, String.Empty)
- {
- m_LocalSimulationService = scene.RequestModuleInterface<ISimulationService>();
- m_LocalSimulationService = m_LocalSimulationService.GetInnerService();
-
-
-
- server.AddStreamHandler(new AgentPostHandler(m_LocalSimulationService));
- server.AddStreamHandler(new AgentPutHandler(m_LocalSimulationService));
- server.AddHTTPHandler("/agent/", new AgentHandler(m_LocalSimulationService).Handler);
- server.AddHTTPHandler("/object/", new ObjectHandler(m_LocalSimulationService).Handler);
- }
- }
- }
|