Beispiel #1
0
 /// <summary>
 /// 递减键值对象的种子
 /// </summary>
 /// <param name="keyobj"></param>
 /// <returns></returns>
 private long CountDownKeyObj(KeyObject keyobj)
 {
     keyobj.CountDownValue--;
     long newValue = keyobj.CurrValue - (keyobj.CountDownValue);
     return newValue;
 }
Beispiel #2
0
 /// <summary>
 /// 取得键值对象的实例
 /// </summary>
 /// <param name="pKey"></param>
 /// <returns></returns>
 private KeyObject GetKeyObject(string pKey)
 {
     KeyObject kobj = KeyObjectList.Find(x => x.Key.Equals(pKey));
     if (kobj == null)
     {
         kobj = new KeyObject(pKey);
         KeyObjectList.Add(kobj);
     }
     return kobj;
 }
Beispiel #3
0
 /// <summary>
 /// 刷新当前的键值
 /// </summary>
 /// <returns></returns>
 private void RefreshCurrValue(IIdantifyDBHelper IDHelper, KeyObject keyobj)
 {
     keyobj.CurrValue = IDHelper.RefreshCurrValue(KeyRange, keyobj.Key);
 }