1 write to CurrentCache
Microsoft.Build (1)
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (1)
21
CurrentCache
= new ConfigCache();
18 references to CurrentCache
Microsoft.Build (18)
BackEnd\BuildManager\CacheSerialization.cs (1)
49
configCacheToSerialize = configCacheWithOverride.
CurrentCache
;
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (17)
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);
79
ErrorUtilities.VerifyThrow(
CurrentCache
.GetMatchingConfiguration(config) == null, "caches should not overlap");
85
return
CurrentCache
.GetMatchingConfiguration(config);
96
ErrorUtilities.VerifyThrow(
CurrentCache
.GetMatchingConfiguration(configMetadata) == null, "caches should not overlap");
102
return
CurrentCache
.GetMatchingConfiguration(configMetadata);
108
return _override.GetMatchingConfiguration(configMetadata, callback, loadProject) ??
CurrentCache
.GetMatchingConfiguration(configMetadata, callback, loadProject);
118
ErrorUtilities.VerifyThrow(!
CurrentCache
.HasConfiguration(configId), "caches should not overlap");
123
return overrideHasConfiguration ||
CurrentCache
.HasConfiguration(configId);
133
CurrentCache
.ClearConfigurations();
138
return
CurrentCache
.ClearNonExplicitlyLoadedConfigurations();
143
return
CurrentCache
.IsConfigCacheSizeLargerThanThreshold();
148
return
CurrentCache
.WriteConfigurationsToDisk();