コード例 #1
0
        private void CheckState(Index index)
        {
            lock (_thisLock)
            {
                if (index == null) return;

                foreach (var group in index.Groups)
                {
                    var keys = new List<Key>();

                    foreach (var key in group.Keys)
                    {
                        if (!_cacheManager.Contains(key)) continue;
                        keys.Add(key);
                    }

                    _existManager.Add(group, keys);
                }
            }
        }
コード例 #2
0
        private void UncheckState(Index index)
        {
            lock (_thisLock)
            {
                if (index == null) return;

                foreach (var group in index.Groups)
                {
                    _existManager.Remove(group);
                }
            }
        }