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)
88return _singletonListeners.GetOrAdd(featureName, _createCallback); 97_singletonListeners.Values.Do(l => l.TrackActiveTokens = enable); 198=> _singletonListeners.Values.Where(l => l.TrackActiveTokens).SelectMany(l => l.ActiveDiagnosticTokens).ToList(); 241return _singletonListeners.Values.Cast<IAsynchronousOperationWaiter>(); 244return _singletonListeners.Where(kv => featureNames.Contains(kv.Key)).Select(kv => (IAsynchronousOperationWaiter)kv.Value);