Пример #1
0
        /// <summary>
        /// 保存双机热备设置
        /// </summary>
        /// <param name="setting"></param>
        /// <returns></returns>
        public bool Save(HostStandbySetting setting)
        {
            SysParaSettingsBll bll = new SysParaSettingsBll(_RepoUri);
            CommandResult      ret = bll.SaveSetting <HostStandbySetting>(setting, "HostStandbySetting_Park" + setting.ParkID.ToString());

            return(ret.Result == ResultCode.Successful);
        }
Пример #2
0
        /// <summary>
        /// 根据parkID获取双机热备设置
        /// </summary>
        /// <returns></returns>
        public HostStandbySetting Get(int parkID)
        {
            SysParaSettingsBll bll     = new SysParaSettingsBll(_RepoUri);
            HostStandbySetting setting = bll.GetSetting <HostStandbySetting>("HostStandbySetting_Park" + parkID.ToString());

            return(setting);
        }