Example #1
0
        CachedComponents UpdateComponent(string directory, long lastDirectoryWrite)
        {
            var components     = extractor.ReadComponents(directory);
            var cachedSnippets = new CachedComponents(
                ticks: lastDirectoryWrite,
                components: components);

            return(componentCache[directory] = cachedSnippets);
        }
Example #2
0
 public bool TryRemoveDirectory(string directory, out CachedComponents cached)
 {
     return(componentCache.TryRemove(directory, out cached));
 }