2 implementations of IConfigCache
Microsoft.Build (2)
BackEnd\Components\Caching\ConfigCache.cs (1)
16internal class ConfigCache : IConfigCache
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (1)
13internal class ConfigCacheWithOverride : IConfigCache
130 references to IConfigCache
Microsoft.Build (43)
BackEnd\BuildManager\BuildManager.cs (6)
88private IConfigCache? _configCache; 694_configCache = ((IBuildComponentHost)this).GetComponent<IConfigCache>(BuildComponentType.ConfigCache); 850_configCache = ((IBuildComponentHost)this).GetComponent<IConfigCache>(BuildComponentType.ConfigCache); 871_configCache = ((IBuildComponentHost)this).GetComponent(BuildComponentType.ConfigCache) as IConfigCache; 2703IConfigCache 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)
17IConfigCache configCache, 115public static (IConfigCache ConfigCache, IResultsCache ResultsCache, Exception exception) DeserializeCaches(string inputCacheFile)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (10)
91private IConfigCache _configCache; 96private IConfigCache _unresolvedConfigurations; 345BuildRequestConfiguration config = ((IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache))[request.ConfigurationId]; 435IConfigCache configCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 515IConfigCache globalConfigurations = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 599_configCache = (IConfigCache)host.GetComponent(BuildComponentType.ConfigCache); 1124IConfigCache globalConfigCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache);
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (2)
15private readonly IConfigCache _override; 18public ConfigCacheWithOverride(IConfigCache @override)
BackEnd\Components\FileAccesses\FileAccessManager.cs (2)
28private IConfigCache? _configCache; 46_configCache = host.GetComponent(BuildComponentType.ConfigCache) as IConfigCache;
BackEnd\Components\Logging\LoggingService.cs (3)
172private Lazy<IConfigCache> _configCache; 311_configCache = new Lazy<IConfigCache>(() => (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache), LazyThreadSafetyMode.PublicationOnly);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
45private readonly IConfigCache _configCache; 85IConfigCache configCache,
BackEnd\Components\Scheduler\Scheduler.cs (4)
125private IConfigCache _configCache; 631_configCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 1962var configCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache);
BackEnd\Components\Scheduler\SchedulingData.cs (1)
525public 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)
79private readonly IConfigCache _globalConfigCache; 154_globalConfigCache = (this as IBuildComponentHost).GetComponent(BuildComponentType.ConfigCache) as IConfigCache; 548if (_componentFactories.GetComponent(BuildComponentType.ConfigCache) is IConfigCache configCache)
Microsoft.Build.Engine.UnitTests (87)
BackEnd\BuildRequestEngine_Tests.cs (2)
276private IConfigCache _cache; 294_cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache);
BackEnd\MockHost.cs (1)
27private IConfigCache _configCache;
BackEnd\RequestBuilder_Tests.cs (12)
84IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 114IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 147IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 186IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 225IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 300IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache);
BackEnd\Scheduler_Tests.cs (1)
737(_host.GetComponent(BuildComponentType.ConfigCache) as IConfigCache).AddConfiguration(config);
BackEnd\TargetBuilder_Tests.cs (67)
102IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 122IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 149IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 178IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 363IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 503IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 529IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 555IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 585IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 620IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 652IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 683IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 709IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 745IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 771IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 798IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 828IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 872IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 899IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 926IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 958IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1056IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1091IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1142IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1202IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1244IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1290IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1321IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1395IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1428IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1455IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1674IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1710IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1726private IConfigCache _configCache;
BackEnd\TargetEntry_Tests.cs (1)
1205private IConfigCache _configCache;
BackEnd\TaskBuilder_Tests.cs (3)
1240IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1260private IConfigCache _configCache;