23 lines
523 B
C#
23 lines
523 B
C#
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));
|
|
|
|
httpServer.Start();
|
|
|
|
lock (httpServer)
|
|
Monitor.Wait(httpServer);
|
|
}
|
|
}
|
|
}
|