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