1 implementation of ICacheEntry
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
69
private sealed class Entry(ReferenceCountedDisposableCache<TKey, TValue> cache, TKey key, TValue value) : IDisposable,
ICacheEntry
<TKey, TValue>
13 references to ICacheEntry
Microsoft.CodeAnalysis.LanguageServer (8)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.cs (3)
35
private IReferenceCountedDisposable<
ICacheEntry
<string, FileSystemWatcher>> GetOrCreateSharedWatcher(string rootPath)
43
private static void AttachWatcher(IEventRaiser eventRaiser, IReferenceCountedDisposable<
ICacheEntry
<string, FileSystemWatcher>> watcher)
51
private static void DetachAndDisposeWatcher(IEventRaiser eventRaiser, IReferenceCountedDisposable<
ICacheEntry
<string, FileSystemWatcher>> watcher)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.FileChangeContext.cs (5)
26
private readonly ImmutableArray<IReferenceCountedDisposable<
ICacheEntry
<string, FileSystemWatcher>>> _fileSystemWatchersForWatchedDirectories;
34
var fileSystemWatchersForWatchedDirectoriesBuilder = ImmutableArray.CreateBuilder<IReferenceCountedDisposable<
ICacheEntry
<string, FileSystemWatcher>>>();
106
private readonly IReferenceCountedDisposable<
ICacheEntry
<string, FileSystemWatcher>> _watcher;
109
public IndividualWatchedFile(FileChangeContext context, string filePath, IReferenceCountedDisposable<
ICacheEntry
<string, FileSystemWatcher>> watcher)
142
public static ImmutableArray<IReferenceCountedDisposable<
ICacheEntry
<string, FileSystemWatcher>>> GetRootFileWatchers(FileChangeContext context)
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
31
public IReferenceCountedDisposable<
ICacheEntry
<TKey, TValue>> GetOrCreate<TArg>(TKey key, Func<TKey, TArg, TValue> valueCreator, TArg arg)
Workspace\ProjectSystem\IRuleSetManager.cs (1)
12
IReferenceCountedDisposable<
ICacheEntry
<string, IRuleSetFile>> GetOrCreateRuleSet(string ruleSetFileFullPath);
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
28
private IReferenceCountedDisposable<
ICacheEntry
<string, IRuleSetFile>>? _ruleSetFile = null;
Microsoft.VisualStudio.LanguageServices (2)
ProjectSystem\RuleSets\VisualStudioRuleSetManager.cs (1)
31
public IReferenceCountedDisposable<
ICacheEntry
<string, IRuleSetFile>> GetOrCreateRuleSet(string ruleSetFileFullPath)
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
49
private readonly MultiDictionary<string, IReferenceCountedDisposable<
ICacheEntry
<IVsHierarchy, HierarchyEventSink>>> _watchedHierarchiesForDocumentMoniker = [];