4 writes to _configurations
Microsoft.Build (4)
BackEnd\Components\Caching\ConfigCache.cs (4)
43_configurations = new Dictionary<int, BuildRequestConfiguration>(); 199_configurations = new Dictionary<int, BuildRequestConfiguration>(); 251_configurations = configurationsToKeep; 363ref _configurations,
18 references to _configurations
Microsoft.Build (18)
BackEnd\Components\Caching\ConfigCache.cs (18)
63return _configurations[configId]; 82ErrorUtilities.VerifyThrow(!_configurations.ContainsKey(configId), "Configuration {0} already cached", config.ConfigurationId); 83_configurations.Add(configId, config); 96BuildRequestConfiguration config = _configurations[configId]; 97_configurations.Remove(configId); 129return _configurations[configId]; 183return _configurations.ContainsKey(configId); 194foreach (var config in _configurations.Values) 214ErrorUtilities.VerifyThrow(_configurations.Count > 0, "No configurations exist from which to obtain the smallest configuration id."); 215return _configurations.OrderBy(kvp => kvp.Key).First().Key; 236if (_configurations.TryGetValue(configId, out BuildRequestConfiguration configuration)) 263return _configurations.Count > _sweepThreshhold; 279int remainingToRelease = _configurations.Count; 283remainingToRelease = Convert.ToInt32(Math.Max(1, Math.Floor(_configurations.Count * 0.1))); 286foreach (BuildRequestConfiguration configuration in _configurations.Values) 319return _configurations.Values.GetEnumerator(); 331return _configurations.Values.GetEnumerator(); 354_configurations.Clear();