Example #1
0
 public static void Run()
 {
     var server = new KayakServer();
     var pipe = server.Invoke(new SimpleApp(Respond));
     Console.WriteLine("Press enter to exit.");
     Console.ReadLine();
     pipe.Dispose();
 }
Example #2
0
 // TODO this should take a Port number
 public static void Run(IApplication application)
 {
     KayakServer server = new KayakServer();
     IDisposable pipe   = server.Invoke(application) as IDisposable;
     Console.WriteLine("KayakServer is running at http://localhost:8080/");
     Console.WriteLine("Press any key to exit");
     Console.Read();
     pipe.Dispose();
 }