/// <summary> /// 重置账号管理实体 /// </summary> public void Reset() { lock (this) { //if (userList != null) // userList.Clear(); userCache.Reset(); //if (basicUserList != null) // basicUserList.Clear(); basicUserCahce.Reset(); accountTypeDic.Clear(); accountCache.Reset(); try { Initialize(); } catch (Exception ex) { LogHelper.WriteError(ex.Message, ex); } } }
/// <summary> /// 清除所有相关委托列表缓存的信息 /// </summary> public void ClearAll() { listLock.EnterWriteLock(); try { qhMessageList.Clear(); //缓存同步信息也清除 qhMessageCache.Reset(); //同样清除缓存自动撤单列表 autoCanceOrder.Reset(); HasChanged = true; } finally { listLock.ExitWriteLock(); } }
public static void Reset() { atcidCache.Reset(); }