Beispiel #1
0
 public PylonRestSvc()
 {
     this.httpSvc = new HttpSvc();
     this.router = new Router();
     this.router.assemble();
 }
Beispiel #2
0
 public void start(Router router,int port = 80 )
 {
     this.router = router;
     isSvcing = true;
     listener = new TcpListener(IPAddress.Any, port);
     listener.Start();
     logger.InfoFormat("Pylon HttpSvc started! port[{0:d}]", port);
     listener.BeginAcceptTcpClient(new AsyncCallback(AcceptCallback), listener);
 }