Ejemplo n.º 1
0
 /// <summary>
 /// 保存上传配置信息
 /// </summary>
 public static void SaveUploadConfig(UploadConfigInfo uploadConfigInfo)
 {
     lock (_locker)
     {
         if (_iconfigstrategy.SaveUploadConfig(uploadConfigInfo))
         {
             _creditconfiginfo = null;
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 保存积分配置信息
 /// </summary>
 public static void SaveCreditConfig(CreditConfigInfo creditConfigInfo)
 {
     lock (_locker)
     {
         if (_iconfigstrategy.SaveCreditConfig(creditConfigInfo))
         {
             _creditconfiginfo = null;
         }
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 重置积分配置信息
 /// </summary>
 public static void ResetCreditConfig()
 {
     lock (_locker)
     {
         _creditconfiginfo = BSPConfig.CreditConfig;
     }
 }
Ejemplo n.º 4
0
        private static object _locker = new object(); //锁对象

        #endregion Fields

        #region Constructors

        static Credits()
        {
            _creditconfiginfo = BSPConfig.CreditConfig;
        }
Ejemplo n.º 5
0
 /// <summary>
 /// 保存积分配置
 /// </summary>
 /// <param name="configInfo">积分配置信息</param>
 /// <returns>是否保存结果</returns>
 public bool SaveCreditConfig(CreditConfigInfo configInfo)
 {
     return SaveConfigInfo(configInfo, IOHelper.GetMapPath(_creditconfigfilepath));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 保存积分配置信息
 /// </summary>
 public static void SaveCreditConfig(CreditConfigInfo creditConfigInfo)
 {
     lock (_locker)
     {
         if (_iconfigstrategy.SaveCreditConfig(creditConfigInfo))
             _creditconfiginfo = null;
     }
 }