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