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); }
public TcpServer() { pinganPayConfig = ConfigManage.GetPinganPayConfig(); }