1 write to CurrentCache
Microsoft.Build (1)
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (1)
20
CurrentCache
= new ConfigCache();
18 references to CurrentCache
Microsoft.Build (18)
BackEnd\BuildManager\CacheSerialization.cs (1)
44
ConfigCacheWithOverride configCacheWithOverride => configCacheWithOverride.
CurrentCache
,
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (17)
25
CurrentCache
.InitializeComponent(host);
30
CurrentCache
.ShutdownComponent();
35
return
CurrentCache
.GetEnumerator();
53
Assumed.False(
CurrentCache
.HasConfiguration(configId), "caches should not overlap");
59
return
CurrentCache
[configId];
66
CurrentCache
.AddConfiguration(config);
76
Assumed.Null(
CurrentCache
.GetMatchingConfiguration(config), "caches should not overlap");
82
return
CurrentCache
.GetMatchingConfiguration(config);
93
Assumed.Null(
CurrentCache
.GetMatchingConfiguration(configMetadata), "caches should not overlap");
99
return
CurrentCache
.GetMatchingConfiguration(configMetadata);
105
return _override.GetMatchingConfiguration(configMetadata, callback, loadProject) ??
CurrentCache
.GetMatchingConfiguration(configMetadata, callback, loadProject);
115
Assumed.False(
CurrentCache
.HasConfiguration(configId), "caches should not overlap");
120
return overrideHasConfiguration ||
CurrentCache
.HasConfiguration(configId);
130
CurrentCache
.ClearConfigurations();
135
return
CurrentCache
.ClearNonExplicitlyLoadedConfigurations();
140
return
CurrentCache
.IsConfigCacheSizeLargerThanThreshold();
145
return
CurrentCache
.WriteConfigurationsToDisk();