Example #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);
        }
Example #2
0
 public bool TryRemoveDirectory(string directory, out CachedSnippets cached)
 {
     return(snippetCache.TryRemove(directory, out cached));
 }