Esempio n. 1
0
        CachedSnippets UpdateSnippets(string directory, long lastDirectoryWrite)
        {
            var snippets       = extractor.ReadSnippets(directory);
            var cachedSnippets = new CachedSnippets(
                ticks: lastDirectoryWrite,
                readSnippets: snippets);

            return(snippetCache[directory] = cachedSnippets);
        }
Esempio n. 2
0
 public bool TryRemoveDirectory(string directory, out CachedSnippets cached)
 {
     return(snippetCache.TryRemove(directory, out cached));
 }