Esempio n. 1
0
 /// <summary>
 /// 启动监听,配置根据ServerConfig来
 /// </summary>
 public override void Start()
 {
     this.Start(ServerConfig.GetConfig());
 }
Esempio n. 2
0
        /// <summary>
        /// 保存服务器配置
        /// </summary>
        /// <param name="config">配置信息</param>
        public static void SaveConfig(ServerConfig config)
        {
            string path = ReflectHelper.GetExePath() + "\\" + Config_File_Name;

            SerializeHelper.SerializeToFile(config, path);
        }