2 implementations of IConfigCache
Microsoft.Build (2)
BackEnd\Components\Caching\ConfigCache.cs (1)
22internal class ConfigCache : IConfigCache
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (1)
13internal class ConfigCacheWithOverride : IConfigCache
125 references to IConfigCache
Microsoft.Build (40)
BackEnd\BuildManager\BuildManager.cs (6)
88private IConfigCache? _configCache; 751_configCache = ((IBuildComponentHost)this).GetComponent<IConfigCache>(BuildComponentType.ConfigCache); 909_configCache = ((IBuildComponentHost)this).GetComponent<IConfigCache>(BuildComponentType.ConfigCache); 930_configCache = ((IBuildComponentHost)this).GetComponent(BuildComponentType.ConfigCache) as IConfigCache; 2939IConfigCache configCache = _componentFactories.GetComponent<IConfigCache>(BuildComponentType.ConfigCache);
BackEnd\BuildManager\CacheAggregator.cs (6)
18private readonly List<(IConfigCache ConfigCache, IResultsCache ResultsCache)> _inputCaches = new List<(IConfigCache ConfigCache, IResultsCache ResultsCache)>(); 30public void Add(IConfigCache configCache, IResultsCache resultsCache) 56private void InsertCaches(IConfigCache configCache, IResultsCache resultsCache) 104public CacheAggregation(IConfigCache configCache, IResultsCache resultsCache, int lastConfigurationId) 111public IConfigCache ConfigCache { get; }
BackEnd\BuildManager\CacheSerialization.cs (2)
18IConfigCache configCache, 116public static (IConfigCache ConfigCache, IResultsCache ResultsCache, Exception exception) DeserializeCaches(string inputCacheFile)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (9)
98private IConfigCache _configCache; 368BuildRequestConfiguration config = ((IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache))[request.ConfigurationId]; 473IConfigCache configCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 558IConfigCache globalConfigurations = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 642_configCache = (IConfigCache)host.GetComponent(BuildComponentType.ConfigCache); 1166IConfigCache globalConfigCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache);
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (2)
15private readonly IConfigCache _override; 18public ConfigCacheWithOverride(IConfigCache @override)
BackEnd\Components\Logging\LoggingService.cs (3)
173private Lazy<IConfigCache> _configCache; 317_configCache = new Lazy<IConfigCache>(() => (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache), LazyThreadSafetyMode.PublicationOnly);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
46private readonly IConfigCache _configCache; 86IConfigCache configCache,
BackEnd\Components\Scheduler\Scheduler.cs (4)
134private IConfigCache _configCache; 676_configCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 2084static BuildRequestConfiguration GetParentConfigurationId(BuildRequest request, IConfigCache configCache, SchedulingData schedulingData) 2120static bool SkipNonexistentTargetsIfExistentTargetsHaveResults(BuildRequest buildRequest, IConfigCache configCache, IResultsCache resultsCache)
BackEnd\Components\Scheduler\SchedulingData.cs (1)
513public int GetConfigurationsCountByNode(int nodeId, bool excludeTraversals, IConfigCache configCache)
BackEnd\Components\Scheduler\SchedulingPlan.cs (2)
27private IConfigCache _configCache; 52public SchedulingPlan(IConfigCache configCache, SchedulingData schedulingData)
BackEnd\Node\OutOfProcNode.cs (3)
81private readonly IConfigCache _globalConfigCache; 156_globalConfigCache = (this as IBuildComponentHost).GetComponent(BuildComponentType.ConfigCache) as IConfigCache; 556if (_componentFactories.GetComponent(BuildComponentType.ConfigCache) is IConfigCache configCache)
Microsoft.Build.Engine.UnitTests (85)
BackEnd\BuildRequestEngine_Tests.cs (2)
270private IConfigCache _cache; 288_cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache);
BackEnd\MockHost.cs (1)
27private IConfigCache _configCache;
BackEnd\RequestBuilder_Tests.cs (12)
90IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 120IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 153IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 192IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 231IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 306IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache);
BackEnd\Scheduler_Tests.cs (1)
742(_host.GetComponent(BuildComponentType.ConfigCache) as IConfigCache).AddConfiguration(config);
BackEnd\TargetBuilder_Tests.cs (67)
107IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 127IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 154IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 183IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 368IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 508IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 534IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 560IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 590IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 625IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 657IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 688IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 714IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 750IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 776IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 803IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 833IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 877IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 904IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 931IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 963IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1061IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1096IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1147IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1207IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1249IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1295IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1326IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1400IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1433IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1460IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1679IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1715IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1731private IConfigCache _configCache;
BackEnd\TargetEntry_Tests.cs (1)
1101private IConfigCache _configCache;
BackEnd\TaskBuilder_Tests.cs (1)
1117private IConfigCache _configCache;