示例#1
0
        public WebServerComponent()
        {
            PlayerConnected += PlayerConnected_Recieved;

            _ws = new WebServer(SendResponse, "http://localhost:20160/spele/");
            _ws.Run();
            Console.WriteLine("A simple webserver. Press a key to quit.");
        }
示例#2
0
 static void Main(string[] args)
 {
     WebServer ws = new WebServer(SendResponse, "http://localhost:20160/spele/");
     ws.Run();
     Console.WriteLine("A simple webserver. Press a key to quit.");
     Console.ReadKey();
     ws.Stop();
 }