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