public void RemoveAllSession() { if (rwl.TryEnterWriteLock(CgwConst.ENTER_LOCK_WAIT_TIME)) { sessionDict = new Dictionary<Guid, CgwSession>(); rwl.ExitWriteLock(); } }