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