private static void Serve(string[] args) { SillyProxyApplication site = null;//new SillyWidgetsProxy(); SillySiteServer testServer = new SillySiteServer(site); Task server = testServer.Start(); server.Wait(); }
public SillySiteServer(SillyProxyApplication requestHandler, int port = 7575, IPAddress ip = null) { this.RequestHandler = requestHandler; this.IP = (ip == null) ? IPAddress.Loopback : ip; this.Port = (port <= 0) ? 7575 : port; }