public override bool Init() { Log.Debug("HttpServerModule Init"); var xmldata = FileHelper.GetDataFromFile("Setting/ServerSetting.xml"); m_ServerSetting = XmlHelper.XmlDeserialize <ServerSetting>(xmldata); m_HttpServer = new HttpServer(); m_HttpServer.Start(m_ServerSetting.Login_Ip); //var str= XmlHelper.XmlSerialize_Str(new ServerSetting() { Login_Ip="111"}); return(base.Init()); }
static void Main(string[] args) { var server = new HttpServer(7777, @"c:\temp"); server.Start(); }
static void Main(string[] args) { var server = new HttpServer(1234); server.Start(); }