public void Start(IConfigSource config, IRegistryCore registry) { IConfig handlerConfig = config.Configs["Handlers"]; if (handlerConfig.GetString("GridInHandler", "") != Name) { return; } m_registry = registry; //This registers regions... got to have it string url = "/grid"; IGridRegistrationService gridRegService = m_registry.RequestModuleInterface <IGridRegistrationService>(); gridRegService.RegisterModule(this); uint port = handlerConfig.GetUInt("RegistrationHandlerPort", 8003); IHttpServer server = m_registry.RequestModuleInterface <ISimulationBase>().GetHttpServer(port); GridServerPostHandler handler = new GridServerPostHandler(url, registry, registry.RequestModuleInterface <IGridService>(). InnerService, false, ""); server.AddStreamHandler(handler); }
public void Start(IConfigSource config, IRegistryCore registry) { IConfig handlerConfig = config.Configs["Handlers"]; if (handlerConfig.GetString("GridInHandler", "") != Name) { return; } m_registry = registry; m_port = handlerConfig.GetUInt("GridInHandlerPort"); //This registers regions... got to have it string url = "/grid"; IHttpServer server = m_registry.RequestModuleInterface <ISimulationBase>().GetHttpServer(m_port); m_port = server.Port; GridServerPostHandler handler = new GridServerPostHandler(url, registry, registry.RequestModuleInterface <IGridService>().InnerService, handlerConfig.GetBoolean("UnsecureUrls", false), 0); server.AddStreamHandler(handler); m_registry.RequestModuleInterface <IGridRegistrationService>().RegisterModule(this); }
public void AddExistingUrlForClient(string SessionID, string url, uint port) { IHttpServer server = m_registry.RequestModuleInterface<ISimulationBase>().GetHttpServer(port); GridServerPostHandler handler = new GridServerPostHandler(url, m_registry, m_registry.RequestModuleInterface<IGridService>(). InnerService, true, 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; GridServerPostHandler handler = new GridServerPostHandler(url, m_registry, m_registry.RequestModuleInterface <IGridService>().InnerService, true, RegionHandle); server.AddStreamHandler(handler); }
public string GetUrlForRegisteringClient(string SessionID, uint port) { string url = "/grid" + UUID.Random(); IHttpServer server = m_registry.RequestModuleInterface<ISimulationBase>().GetHttpServer(port); GridServerPostHandler handler = new GridServerPostHandler(url, m_registry, m_registry.RequestModuleInterface<IGridService>(). InnerService, true, SessionID); server.AddStreamHandler(handler); return url; }
public string GetUrlForRegisteringClient(string SessionID, ulong RegionHandle) { string url = "/grid" + UUID.Random(); IHttpServer server = m_registry.RequestModuleInterface <ISimulationBase>().GetHttpServer(m_port); m_port = server.Port; GridServerPostHandler handler = new GridServerPostHandler(url, m_registry, m_registry.RequestModuleInterface <IGridService>().InnerService, true, RegionHandle); server.AddStreamHandler(handler); return(url); }
public void Start(IConfigSource config, IRegistryCore registry) { IConfig handlerConfig = config.Configs["Handlers"]; if (handlerConfig.GetString("GridInHandler", "") != Name) return; m_registry = registry; m_port = handlerConfig.GetUInt("GridInHandlerPort"); //This registers regions... got to have it string url = "/grid"; IHttpServer server = m_registry.RequestModuleInterface<ISimulationBase>().GetHttpServer(m_port); m_port = server.Port; GridServerPostHandler handler = new GridServerPostHandler(url, registry, registry.RequestModuleInterface<IGridService>().InnerService, handlerConfig.GetBoolean("UnsecureUrls", false), 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("GridInHandler", "") != Name) return; m_registry = registry; //This registers regions... got to have it string url = "/grid"; IGridRegistrationService gridRegService = m_registry.RequestModuleInterface<IGridRegistrationService> (); gridRegService.RegisterModule (this); uint port = handlerConfig.GetUInt ("RegistrationHandlerPort", 8003); IHttpServer server = m_registry.RequestModuleInterface<ISimulationBase> ().GetHttpServer (port); GridServerPostHandler handler = new GridServerPostHandler(url, registry, registry.RequestModuleInterface<IGridService>().InnerService, false, ""); server.AddStreamHandler(handler); }