Ejemplo n.º 1
0
        private static void Serve(string[] args)
        {
            SillyProxyApplication site       = null;//new SillyWidgetsProxy();
            SillySiteServer       testServer = new SillySiteServer(site);

            Task server = testServer.Start();

            server.Wait();
        }
Ejemplo n.º 2
0
 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;
 }