Beispiel #1
0
        public void start()
        {
            myCore.Logging.log("Webserver starting ...", 0, myCore.LogType.Information);

            int           port    = Convert.ToInt32(conf["port"]);
            List <string> nsNames = new List <string> ()
            {
                conf["nsName"]
            };

            myWeb.HttpListenerWrapper lw = myWeb.HttpListenerWrapper.GetWrapper(port, nsNames);
            lw.Start();

            myCore.Logging.log("Listening for requests on port {0} on localhost, 127.0.0.1{1} ...", 1, myCore.LogType.Information, port, ((nsNames != null && nsNames.Count > 0) ? ", " + String.Join(", ", nsNames.ToArray()) : ""));

            this.WSHostWorkerObject = new myWeb.HostWorker();
            this.WSHostWorkerThread = new Thread(this.WSHostWorkerObject.DoWork);

            this.WSHostWorkerThread.Start(lw);
        }
        public void start()
        {
            myCore.Logging.log("Webserver starting ...", 0, myCore.LogType.Information);

            int port = Convert.ToInt32(conf["port"]);
            List<string> nsNames = new List<string> () { conf["nsName"] };

            myWeb.HttpListenerWrapper lw = myWeb.HttpListenerWrapper.GetWrapper(port, nsNames);
            lw.Start();

            myCore.Logging.log("Listening for requests on port {0} on localhost, 127.0.0.1{1} ...", 1, myCore.LogType.Information, port, ((nsNames != null && nsNames.Count > 0) ? ", " + String.Join(", ", nsNames.ToArray()) : ""));

            this.WSHostWorkerObject = new myWeb.HostWorker();
            this.WSHostWorkerThread = new Thread(this.WSHostWorkerObject.DoWork);

            this.WSHostWorkerThread.Start(lw);
        }