예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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;
        }
예제 #6
0
        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);
        }
예제 #7
0
        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);
        }