static void Main(string[] args) { Console.Title = "LuceneServer"; GlobalFilters.Add(new ExceptionFilter()); var server = new LnServer(); server.BindService<LnService>().BindService<SystemService>(); server.StartListen(int.Parse(ConfigurationManager.AppSettings["Port"])); Console.WriteLine("服务监听中:端口" + server.LocalEndPoint.Port); while (true) { Console.ReadLine(); } }
static void Main(string[] args) { Console.Title = "LuceneServer"; GlobalFilters.Add(new ExceptionFilter()); var server = new LnServer(); server.BindService <LnService>().BindService <SystemService>(); server.StartListen(int.Parse(ConfigurationManager.AppSettings["Port"])); Console.WriteLine("服务监听中:端口" + server.LocalEndPoint.Port); while (true) { Console.ReadLine(); } }