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)
55
return
_resultsByConfiguration
;
67
lock (
_resultsByConfiguration
)
69
if (
_resultsByConfiguration
.TryGetValue(result.ConfigurationId, out BuildResult buildResult))
84
if (!
_resultsByConfiguration
.TryAdd(result.ConfigurationId, result))
97
lock (
_resultsByConfiguration
)
99
foreach (KeyValuePair<int, BuildResult> result in
_resultsByConfiguration
)
104
_resultsByConfiguration
.Clear();
117
lock (
_resultsByConfiguration
)
119
if (
_resultsByConfiguration
.TryGetValue(request.ConfigurationId, out BuildResult result))
141
lock (
_resultsByConfiguration
)
143
_resultsByConfiguration
.TryGetValue(configurationId, out results);
171
lock (
_resultsByConfiguration
)
173
if (
_resultsByConfiguration
.TryGetValue(request.ConfigurationId, out BuildResult allResults))
236
lock (
_resultsByConfiguration
)
238
_resultsByConfiguration
.TryRemove(configurationId, out BuildResult removedResult);
246
IDictionary<int, BuildResult> localReference =
_resultsByConfiguration
;
265
lock (
_resultsByConfiguration
)
267
foreach (BuildResult resultToCache in
_resultsByConfiguration
.Values)
292
_resultsByConfiguration
.Clear();
403
return
_resultsByConfiguration
.Values.GetEnumerator();