Run() public method

public Run ( ) : void
return void
Example #1
0
        static void Main(string[] args)
        {
            ParseConfiguration();
            WebServer server = new WebServer(SendResponse, String.Format("http://localhost:{0}/", port));

            server.Run();
            PrintStartupMessaging();
            Console.ReadKey();
            server.Stop();
        }
Example #2
0
 static void Main(string[] args)
 {
     ParseConfiguration();
     WebServer server = new WebServer(SendResponse, String.Format("http://localhost:{0}/", port));
     server.Run();
     PrintStartupMessaging();
     Console.ReadKey();
     server.Stop();
 }