1 implementation of IReferenceCountedDisposable
Microsoft.CodeAnalysis.Workspaces (1)
ReferenceCountedDisposable.cs (1)
56
internal sealed class ReferenceCountedDisposable<T> :
IReferenceCountedDisposable
<T>, IDisposable
11 references to IReferenceCountedDisposable
Microsoft.CodeAnalysis.Workspaces (6)
IReferenceCountedDisposable.cs (1)
45
IReferenceCountedDisposable
<T>? TryAddReference();
ReferenceCountedDisposable.cs (2)
133
IReferenceCountedDisposable
<T>?
IReferenceCountedDisposable
<T>.TryAddReference()
ReferenceCountedDisposableCache.cs (1)
22
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)
43
private
IReferenceCountedDisposable
<ICacheEntry<string, IRuleSetFile>>? _ruleSetFile = null;
Microsoft.VisualStudio.LanguageServices (5)
ProjectSystem\RuleSets\VisualStudioRuleSetManager.cs (2)
34
public
IReferenceCountedDisposable
<ICacheEntry<string, IRuleSetFile>> GetOrCreateRuleSet(string ruleSetFileFullPath)
36
var
cacheEntry = _ruleSetFileMap.GetOrCreate(ruleSetFileFullPath, static (ruleSetFileFullPath, self) => new RuleSetFile(ruleSetFileFullPath, self), this);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (3)
54
private readonly MultiDictionary<string,
IReferenceCountedDisposable
<ICacheEntry<IVsHierarchy, HierarchyEventSink>>> _watchedHierarchiesForDocumentMoniker
266
foreach (
var
watchedHierarchy in _watchedHierarchiesForDocumentMoniker[moniker])
304
foreach (
var
subscribedHierarchy in _watchedHierarchiesForDocumentMoniker[moniker])