Exemplo n.º 1
0
 public bool VisitEntry(string deviceID, nsICacheEntryInfo entryInfo)
 {
     if (entryInfo == null)
     {
         return(true);
     }
     using (var entry = CacheEntryInfo.Create(entryInfo))
     {
         _entryProcessor(entry);
     }
     return(true);
 }
Exemplo n.º 2
0
        public bool VisitEntry(string deviceID, nsICacheEntryInfo entryInfo)
        {
            if (entryInfo == null)
            {
                return(true);
            }

            using (var entry = CacheEntryInfo.Create(entryInfo))
            {
                if (_predicate(entry))
                {
                    var key = entry.Key;
                    _foundEntries.Add(key);
                }
            }
            return(true);
        }