public void AddExistingUrlForClient (string SessionID, string url, uint port) { IHttpServer server = m_registry.RequestModuleInterface<ISimulationBase>().GetHttpServer(port); AgentInfoServerPostHandler handler = new AgentInfoServerPostHandler(url, m_registry, m_registry.RequestModuleInterface<IAgentInfoService>().InnerService, SessionID); server.AddStreamHandler(handler); }
public void AddExistingUrlForClient(string SessionID, ulong RegionHandle, string url) { IHttpServer server = m_registry.RequestModuleInterface <ISimulationBase>().GetHttpServer(m_port); m_port = server.Port; AgentInfoServerPostHandler handler = new AgentInfoServerPostHandler(url, m_registry, m_registry.RequestModuleInterface <IAgentInfoService>().InnerService, RegionHandle); server.AddStreamHandler(handler); }
public string GetUrlForRegisteringClient(string SessionID, uint port) { string url = "/agentinfo" + UUID.Random(); IHttpServer server = m_registry.RequestModuleInterface<ISimulationBase>().GetHttpServer(port); AgentInfoServerPostHandler handler = new AgentInfoServerPostHandler(url, m_registry, m_registry.RequestModuleInterface <IAgentInfoService>().InnerService, SessionID); server.AddStreamHandler(handler); return url; }
public string GetUrlForRegisteringClient(string SessionID, ulong RegionHandle) { string url = "/agentinfo" + UUID.Random(); IHttpServer server = m_registry.RequestModuleInterface <ISimulationBase>().GetHttpServer(m_port); m_port = server.Port; AgentInfoServerPostHandler handler = new AgentInfoServerPostHandler(url, m_registry, m_registry.RequestModuleInterface <IAgentInfoService>().InnerService, RegionHandle); server.AddStreamHandler(handler); return(url); }
public void Start(IConfigSource config, IRegistryCore registry) { IConfig handlerConfig = config.Configs["Handlers"]; if (handlerConfig.GetString("AgentInfoInHandler", "") != Name) return; m_registry = registry; m_port = handlerConfig.GetUInt("AgentInfoInHandlerPort"); if (handlerConfig.GetBoolean("UnsecureUrls", false)) { string url = "/agentinfo"; IHttpServer server = m_registry.RequestModuleInterface<ISimulationBase>().GetHttpServer(m_port); m_port = server.Port; AgentInfoServerPostHandler handler = new AgentInfoServerPostHandler(url, registry, registry.RequestModuleInterface<IAgentInfoService>().InnerService, 0); server.AddStreamHandler(handler); } m_registry.RequestModuleInterface<IGridRegistrationService>().RegisterModule(this); }
public void Start(IConfigSource config, IRegistryCore registry) { IConfig handlerConfig = config.Configs["Handlers"]; if (handlerConfig.GetString("AgentInfoInHandler", "") != Name) { return; } m_registry = registry; m_port = handlerConfig.GetUInt("AgentInfoInHandlerPort"); if (handlerConfig.GetBoolean("UnsecureUrls", false)) { string url = "/agentinfo"; IHttpServer server = m_registry.RequestModuleInterface <ISimulationBase>().GetHttpServer(m_port); m_port = server.Port; AgentInfoServerPostHandler handler = new AgentInfoServerPostHandler(url, registry, registry.RequestModuleInterface <IAgentInfoService>().InnerService, 0); server.AddStreamHandler(handler); } m_registry.RequestModuleInterface <IGridRegistrationService>().RegisterModule(this); }