Ejemplo n.º 1
0
        public void Initialize()
        {
            XmlDocument configDoc = new XmlDocument();
            configDoc.Load(this.GetType().Assembly.Location + ".config");
            XmlNode restService = configDoc.SelectSingleNode("configuration/restservice");

            RequestListener = new RESTRequestListener(ReadHost(restService), ReadBaseURL(restService));
            RequestListener.Initialize();
            RequestDispatcher.Instance.RegisterHandler(new RESTSceneAPI());
        }
        public void Initialize()
        {
            XmlDocument configDoc = new XmlDocument();

            configDoc.Load(this.GetType().Assembly.Location + ".config");
            XmlNode restService = configDoc.SelectSingleNode("configuration/restservice");

            RequestListener = new RESTRequestListener(ReadHost(restService), ReadBaseURL(restService));
            RequestListener.Initialize();
            RequestDispatcher.Instance.RegisterHandler(new RESTSceneAPI());
        }