public bool VisitEntry(string deviceID, nsICacheEntryInfo entryInfo)
        {
            var entry = new CacheEntryInfo(entryInfo);

            if (_predicate(entry))
            {
                _foundEntries.Add(entry.Key);
            }
            return(true);
        }
Esempio n. 2
0
 public bool VisitEntry(string deviceID, nsICacheEntryInfo entryInfo)
 {
     if (entryInfo == null)
     {
         return(true);
     }
     using (var entry = CacheEntryInfo.Create(entryInfo))
     {
         _entryProcessor(entry);
     }
     return(true);
 }
Esempio n. 3
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);
        }
Esempio n. 4
0
 public bool VisitEntry( string deviceID, nsICacheEntryInfo entryInfo )
 {
     if ( entryInfo == null ) return true;
     var entry = new CacheEntryInfo(entryInfo);
     if (_predicate(entry))
     {
         _foundEntries.Add( entry.Key );
     }
     return true;
 }