2 writes to _resultsByConfiguration
Microsoft.Build (2)
BackEnd\Components\Caching\ResultsCache.cs (2)
38
_resultsByConfiguration
= new ConcurrentDictionary<int, BuildResult>();
248
_resultsByConfiguration
= (ConcurrentDictionary<int, BuildResult>)localReference;
20 references to _resultsByConfiguration
Microsoft.Build (20)
BackEnd\Components\Caching\ResultsCache.cs (20)
53
return
_resultsByConfiguration
;
65
lock (
_resultsByConfiguration
)
67
if (
_resultsByConfiguration
.TryGetValue(result.ConfigurationId, out BuildResult buildResult))
82
Assumed.True(
_resultsByConfiguration
.TryAdd(result.ConfigurationId, result), $"Failed to add result for configuration {result.ConfigurationId}");
92
lock (
_resultsByConfiguration
)
94
foreach (KeyValuePair<int, BuildResult> result in
_resultsByConfiguration
)
99
_resultsByConfiguration
.Clear();
112
lock (
_resultsByConfiguration
)
114
if (
_resultsByConfiguration
.TryGetValue(request.ConfigurationId, out BuildResult result))
136
lock (
_resultsByConfiguration
)
138
_resultsByConfiguration
.TryGetValue(configurationId, out results);
166
lock (
_resultsByConfiguration
)
168
if (
_resultsByConfiguration
.TryGetValue(request.ConfigurationId, out BuildResult allResults))
228
lock (
_resultsByConfiguration
)
230
_resultsByConfiguration
.TryRemove(configurationId, out BuildResult removedResult);
238
IDictionary<int, BuildResult> localReference =
_resultsByConfiguration
;
257
lock (
_resultsByConfiguration
)
259
foreach (BuildResult resultToCache in
_resultsByConfiguration
.Values)
284
_resultsByConfiguration
.Clear();
396
return
_resultsByConfiguration
.Values.GetEnumerator();