2 writes to _resultsByConfiguration
Microsoft.Build (2)
BackEnd\Components\Caching\ResultsCache.cs (2)
39
_resultsByConfiguration
= new ConcurrentDictionary<int, BuildResult>();
252
_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);
167
lock (
_resultsByConfiguration
)
169
if (
_resultsByConfiguration
.TryGetValue(request.ConfigurationId, out BuildResult allResults))
232
lock (
_resultsByConfiguration
)
234
_resultsByConfiguration
.TryRemove(configurationId, out BuildResult removedResult);
242
IDictionary<int, BuildResult> localReference =
_resultsByConfiguration
;
261
lock (
_resultsByConfiguration
)
263
foreach (BuildResult resultToCache in
_resultsByConfiguration
.Values)
288
_resultsByConfiguration
.Clear();
400
return
_resultsByConfiguration
.Values.GetEnumerator();