1 write to _singletonListeners
Microsoft.CodeAnalysis.Workspaces (1)
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (1)
76
_singletonListeners
= new ConcurrentDictionary<string, AsynchronousOperationListener>(concurrencyLevel: 2, capacity: 20);
5 references to _singletonListeners
Microsoft.CodeAnalysis.Workspaces (5)
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (5)
88
return
_singletonListeners
.GetOrAdd(featureName, _createCallback);
97
_singletonListeners
.Values.Do(l => l.TrackActiveTokens = enable);
198
=>
_singletonListeners
.Values.Where(l => l.TrackActiveTokens).SelectMany(l => l.ActiveDiagnosticTokens).ToList();
241
return
_singletonListeners
.Values.Cast<IAsynchronousOperationWaiter>();
244
return
_singletonListeners
.Where(kv => featureNames.Contains(kv.Key)).Select(kv => (IAsynchronousOperationWaiter)kv.Value);