1 write to CurrentCache
Microsoft.Build (1)
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (1)
21
CurrentCache
= new ConfigCache();
19 references to CurrentCache
Microsoft.Build (19)
BackEnd\BuildManager\CacheSerialization.cs (1)
49
configCacheToSerialize = configCacheWithOverride.
CurrentCache
;
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (18)
26
CurrentCache
.InitializeComponent(host);
31
CurrentCache
.ShutdownComponent();
36
return
CurrentCache
.GetEnumerator();
56
ErrorUtilities.VerifyThrow(!
CurrentCache
.HasConfiguration(configId), "caches should not overlap");
62
return
CurrentCache
[configId];
69
CurrentCache
.AddConfiguration(config);
74
CurrentCache
.RemoveConfiguration(configId);
84
ErrorUtilities.VerifyThrow(
CurrentCache
.GetMatchingConfiguration(config) == null, "caches should not overlap");
90
return
CurrentCache
.GetMatchingConfiguration(config);
101
ErrorUtilities.VerifyThrow(
CurrentCache
.GetMatchingConfiguration(configMetadata) == null, "caches should not overlap");
107
return
CurrentCache
.GetMatchingConfiguration(configMetadata);
113
return _override.GetMatchingConfiguration(configMetadata, callback, loadProject) ??
CurrentCache
.GetMatchingConfiguration(configMetadata, callback, loadProject);
123
ErrorUtilities.VerifyThrow(!
CurrentCache
.HasConfiguration(configId), "caches should not overlap");
128
return overrideHasConfiguration ||
CurrentCache
.HasConfiguration(configId);
138
CurrentCache
.ClearConfigurations();
143
return
CurrentCache
.ClearNonExplicitlyLoadedConfigurations();
148
return
CurrentCache
.IsConfigCacheSizeLargerThanThreshold();
153
return
CurrentCache
.WriteConfigurationsToDisk();