2 writes to _resultsByConfiguration
Microsoft.Build (2)
BackEnd\Components\Caching\ResultsCache.cs (2)
39
_resultsByConfiguration
= new ConcurrentDictionary<int, BuildResult>();
273
_resultsByConfiguration
= (ConcurrentDictionary<int, BuildResult>)localReference;
20 references to _resultsByConfiguration
Microsoft.Build (20)
BackEnd\Components\Caching\ResultsCache.cs (20)
54
return
_resultsByConfiguration
;
66
lock (
_resultsByConfiguration
)
68
if (
_resultsByConfiguration
.TryGetValue(result.ConfigurationId, out BuildResult buildResult))
83
Assumed.True(
_resultsByConfiguration
.TryAdd(result.ConfigurationId, result), $"Failed to add result for configuration {result.ConfigurationId}");
93
lock (
_resultsByConfiguration
)
95
foreach (KeyValuePair<int, BuildResult> result in
_resultsByConfiguration
)
100
_resultsByConfiguration
.Clear();
113
lock (
_resultsByConfiguration
)
115
if (
_resultsByConfiguration
.TryGetValue(request.ConfigurationId, out BuildResult result))
137
lock (
_resultsByConfiguration
)
139
_resultsByConfiguration
.TryGetValue(configurationId, out results);
191
lock (
_resultsByConfiguration
)
193
if (
_resultsByConfiguration
.TryGetValue(request.ConfigurationId, out BuildResult allResults))
253
lock (
_resultsByConfiguration
)
255
_resultsByConfiguration
.TryRemove(configurationId, out BuildResult removedResult);
263
IDictionary<int, BuildResult> localReference =
_resultsByConfiguration
;
282
lock (
_resultsByConfiguration
)
284
foreach (BuildResult resultToCache in
_resultsByConfiguration
.Values)
309
_resultsByConfiguration
.Clear();
437
return
_resultsByConfiguration
.Values.GetEnumerator();