2 writes to _resultsByConfiguration
Microsoft.Build (2)
BackEnd\Components\Caching\ResultsCache.cs (2)
40_resultsByConfiguration = new ConcurrentDictionary<int, BuildResult>(); 256_resultsByConfiguration = (ConcurrentDictionary<int, BuildResult>)localReference;
20 references to _resultsByConfiguration
Microsoft.Build (20)
BackEnd\Components\Caching\ResultsCache.cs (20)
55return _resultsByConfiguration; 67lock (_resultsByConfiguration) 69if (_resultsByConfiguration.TryGetValue(result.ConfigurationId, out BuildResult buildResult)) 84if (!_resultsByConfiguration.TryAdd(result.ConfigurationId, result)) 97lock (_resultsByConfiguration) 99foreach (KeyValuePair<int, BuildResult> result in _resultsByConfiguration) 104_resultsByConfiguration.Clear(); 117lock (_resultsByConfiguration) 119if (_resultsByConfiguration.TryGetValue(request.ConfigurationId, out BuildResult result)) 141lock (_resultsByConfiguration) 143_resultsByConfiguration.TryGetValue(configurationId, out results); 171lock (_resultsByConfiguration) 173if (_resultsByConfiguration.TryGetValue(request.ConfigurationId, out BuildResult allResults)) 236lock (_resultsByConfiguration) 238_resultsByConfiguration.TryRemove(configurationId, out BuildResult removedResult); 246IDictionary<int, BuildResult> localReference = _resultsByConfiguration; 265lock (_resultsByConfiguration) 267foreach (BuildResult resultToCache in _resultsByConfiguration.Values) 292_resultsByConfiguration.Clear(); 403return _resultsByConfiguration.Values.GetEnumerator();