Esempio n. 1
0
        public void AddTelehub(Telehub telehub, UUID SessionID)
        {
            Dictionary<string, object> sendData = telehub.ToKeyValuePairs();

            sendData["SESSIONID"] = SessionID.ToString();
            sendData["METHOD"] = "addtelehub";

            string reqString = ServerUtils.BuildQueryString(sendData);

            try
            {
                string reply = SynchronousRestFormsRequester.MakeRequest("POST",
                        m_ServerURI + "/grid",
                        reqString);
            }
            catch (Exception e)
            {
                m_log.DebugFormat("[AuroraRemoteRegionConnector]: Exception when contacting server: {0}", e.Message);
            }
        }
Esempio n. 2
0
        public void AddTelehub(Telehub telehub, ulong RegionHandle)
        {
            Dictionary<string, object> sendData = telehub.ToKeyValuePairs();
            sendData["METHOD"] = "addtelehub";

            string reqString = WebUtils.BuildQueryString(sendData);

            try
            {
                List<string> m_ServerURIs = m_registry.RequestModuleInterface<IConfigurationService>().FindValueOf(RegionHandle.ToString(), "GridServerURI");
                foreach (string m_ServerURI in m_ServerURIs)
                {
                    SynchronousRestFormsRequester.MakeRequest("POST",
                        m_ServerURI,
                        reqString);
                }
            }
            catch (Exception e)
            {
                m_log.DebugFormat("[AuroraRemoteRegionConnector]: Exception when contacting server: {0}", e.ToString());
            }
        }