Stop() public method

public Stop ( ) : void
return void
Exemplo n.º 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();
        }
Exemplo n.º 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();
 }