Beispiel #1
0
        public HttpServer()
        {
            //----------------
            var pinganPayConfig = ConfigManage.GetPinganPayConfig();
            var host            = pinganPayConfig.DownSetting.ListenIP;
            var port            = pinganPayConfig.DownSetting.ListenPort;

            //----------------
            httpUrl  = string.Format("http://{0}:{1}/", host, port);
            listener = new HttpListener();
            listener.Prefixes.Add(httpUrl);
        }
Beispiel #2
0
 public TcpServer()
 {
     pinganPayConfig = ConfigManage.GetPinganPayConfig();
 }