using System; using System.Threading; using ln.http; using ln.http.listener; using ln.http.router; namespace ln.http.service { class Program { static void Main(string[] args) { StaticRouter staticRouter = new StaticRouter("."); HTTPServer httpServer = new HTTPServer(new HttpListener(8888), new LoggingRouter(staticRouter.Route).Route); httpServer.Start(); lock (httpServer) Monitor.Wait(httpServer); } } }