1 write to CurrentCache
Microsoft.Build (1)
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (1)
21CurrentCache = new ConfigCache();
18 references to CurrentCache
Microsoft.Build (18)
BackEnd\BuildManager\CacheSerialization.cs (1)
49configCacheToSerialize = configCacheWithOverride.CurrentCache;
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (17)
26CurrentCache.InitializeComponent(host); 31CurrentCache.ShutdownComponent(); 36return CurrentCache.GetEnumerator(); 56ErrorUtilities.VerifyThrow(!CurrentCache.HasConfiguration(configId), "caches should not overlap"); 62return CurrentCache[configId]; 69CurrentCache.AddConfiguration(config); 79ErrorUtilities.VerifyThrow(CurrentCache.GetMatchingConfiguration(config) == null, "caches should not overlap"); 85return CurrentCache.GetMatchingConfiguration(config); 96ErrorUtilities.VerifyThrow(CurrentCache.GetMatchingConfiguration(configMetadata) == null, "caches should not overlap"); 102return CurrentCache.GetMatchingConfiguration(configMetadata); 108return _override.GetMatchingConfiguration(configMetadata, callback, loadProject) ?? CurrentCache.GetMatchingConfiguration(configMetadata, callback, loadProject); 118ErrorUtilities.VerifyThrow(!CurrentCache.HasConfiguration(configId), "caches should not overlap"); 123return overrideHasConfiguration || CurrentCache.HasConfiguration(configId); 133CurrentCache.ClearConfigurations(); 138return CurrentCache.ClearNonExplicitlyLoadedConfigurations(); 143return CurrentCache.IsConfigCacheSizeLargerThanThreshold(); 148return CurrentCache.WriteConfigurationsToDisk();