static void Main(string[] args) { string host = ConfigurationManager.AppSettings["server-host"]; int port = int.Parse(ConfigurationManager.AppSettings["server-port"]); string manager_host = ConfigurationManager.AppSettings["manager-host"]; int manager_port = int.Parse(ConfigurationManager.AppSettings["manager-port"]); Beetle.DTCore.Center.ServerCenter server = new DTCore.Center.ServerCenter(); server.Loger.Handlers.Add(new Beetle.DTCore.ConsoleLogHandler()); server.Open(host, port, manager_host, manager_port); Console.Read(); }
public UnitTest1() { mCenter = new Center.ServerCenter(); mCenter.Open("127.0.0.1", 10244, "127.0.0.1", 10245); }