//------------------------------------------------------------------------- static void Main(string[] args) { GrainClient.Initialize("BaseClientConfiguration.xml"); Console.Title = "FishingBase"; ProgramConfig config = new ProgramConfig(); config.load("./FishingBase.exe.config"); EsEngineSettings settings; settings.NodeType = 2; settings.NodeTypeString = "Base"; settings.ListenIp = config.ListenIp; settings.ListenPort = config.ListenPort; settings.RootEntityType = "EtRoot"; settings.EnableCoSupersocket = true; settings.Log4NetConfigPath = "../../../Media/Fishing/Config/FishingBase.log4net.config"; try { EsEngine e = new EsEngine(ref settings, new EsEngineListener()); e.run(); } catch (System.Exception ex) { EbLog.Note(ex.ToString()); } GrainClient.Uninitialize(); }
//------------------------------------------------------------------------- static void Main(string[] args) { Console.Title = "EsTest"; EsEngineSettings settings; settings.NodeType = 2; settings.NodeTypeString = "EsTest"; settings.ListenIp = "127.0.0.1"; settings.ListenPort = 5882; settings.RootEntityType = "EtNode"; settings.EnableCoSupersocket = false; settings.Log4NetConfigPath = "../../../Media/EsTest/EsTest.log4net.config"; EsEngine e = new EsEngine(ref settings, new EsEngineListener()); e.run(); }