示例#1
0
 private static void ServerResetConfig()
 {
     vpsStatus      = VpsStatus.Running;
     anyTaskWorking = true;
     servers        = new ServerList();
     SummomPriceRule.Init();
     Goods.Equiment.EquimentPrice.Init();
     servers.ResetConfig(settingDelayTime, settingAssumePriceRate);
     Tcp.Send(new RpClientRunReadyMessage());
 }
示例#2
0
 private static void ServerRun()
 {
     servers = new ServerList();
     SummomPriceRule.Init();
     Goods.Equiment.EquimentPrice.Init();
     Program.setting.threadSetting.Status = "初始化完成";
     //setting.LogInfo("进程加载完成,等待1000ms", "主记录");
     //while(Environment.TickCount- systemBegin < 1000)
     //{
     //	Thread.Sleep(50);
     //}
     servers.Run();
     Tcp.Send("<clientExit>");
     setting.LogInfo("进程退出", "主记录");
 }