Ejemplo n.º 1
0
 public void Initialize(IGridServiceCore core)
 {
     m_core = core;
     m_gridInfoService = new GridInfoService();
 }
        private void CreateGridInfoService()
        {
            // provide grid info
            m_gridInfoService = new GridInfoService(m_openSim.ConfigSource.Source);

            // Old Style
            m_httpServer.AddXmlRPCHandler("get_grid_info", m_gridInfoService.XmlRpcGridInfoMethod);

            // New Style service interface
            m_httpServer.AddStreamHandler(new XmlRpcStreamHandler("POST", Util.XmlRpcRequestPrefix("get_grid_info"), m_gridInfoService.XmlRpcGridInfoMethod));

            // REST Handler
            m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/get_grid_info", m_gridInfoService.RestGetGridInfoMethod));
        }
Ejemplo n.º 3
0
 private void CreateGridInfoService()
 {
     // provide grid info
     m_gridInfoService = new GridInfoService(m_openSim.ConfigSource.Source);
     m_httpServer.AddXmlRPCHandler("get_grid_info", m_gridInfoService.XmlRpcGridInfoMethod);
     m_httpServer.AddStreamHandler(
          new RestStreamHandler("GET", "/get_grid_info", m_gridInfoService.RestGetGridInfoMethod));
 }