342 references to BuildComponentType
Microsoft.Build (162)
BackEnd\BuildManager\BuildManager.cs (24)
368private ISdkResolverService SdkResolverService => ((this as IBuildComponentHost).GetComponent(BuildComponentType.SdkResolverService) as ISdkResolverService)!; 374ILoggingService IBuildComponentHost.LoggingService => _componentFactories.GetComponent<ILoggingService>(BuildComponentType.LoggingService); 563_nodeManager = ((IBuildComponentHost)this).GetComponent(BuildComponentType.NodeManager) as INodeManager; 594_taskHostNodeManager = ((IBuildComponentHost)this).GetComponent<INodeManager>(BuildComponentType.TaskHostNodeManager); 595_scheduler = ((IBuildComponentHost)this).GetComponent<IScheduler>(BuildComponentType.Scheduler); 686_configCache = ((IBuildComponentHost)this).GetComponent<IConfigCache>(BuildComponentType.ConfigCache); 687_resultsCache = ((IBuildComponentHost)this).GetComponent<IResultsCache>(BuildComponentType.ResultsCache); 833_configCache = ((IBuildComponentHost)this).GetComponent<IConfigCache>(BuildComponentType.ConfigCache); 834_resultsCache = ((IBuildComponentHost)this).GetComponent<IResultsCache>(BuildComponentType.ResultsCache); 854_configCache = ((IBuildComponentHost)this).GetComponent(BuildComponentType.ConfigCache) as IConfigCache; 1165_nodeManager ??= (INodeManager)((IBuildComponentHost)this).GetComponent(BuildComponentType.NodeManager); 1205void IBuildComponentHost.RegisterFactory(BuildComponentType componentType, BuildComponentFactoryDelegate factory) 1215IBuildComponent IBuildComponentHost.GetComponent(BuildComponentType type) 1220TComponent IBuildComponentHost.GetComponent<TComponent>(BuildComponentType type) 2480ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 2493ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 2667IConfigCache configCache = _componentFactories.GetComponent<IConfigCache>(BuildComponentType.ConfigCache); 2767ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 2918_componentFactories.ReplaceFactory(BuildComponentType.LoggingService, loggingService as IBuildComponent); 2931((IBuildComponentHost)this).GetComponent(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider; 3103_componentFactories.ShutdownComponent(BuildComponentType.LoggingService); 3110_componentFactories.ReplaceFactory(BuildComponentType.LoggingService, (IBuildComponent?)null); 3209_componentFactories.ReplaceFactory(BuildComponentType.ConfigCache, new ConfigCacheWithOverride(cacheAggregation.ConfigCache)); 3210_componentFactories.ReplaceFactory(BuildComponentType.ResultsCache, new ResultsCacheWithOverride(cacheAggregation.ResultsCache));
BackEnd\Components\BuildComponentFactoryCollection.cs (46)
23private readonly Dictionary<BuildComponentType, BuildComponentEntry> _componentEntriesByType; 36_componentEntriesByType = new Dictionary<BuildComponentType, BuildComponentEntry>(); 60_componentEntriesByType[BuildComponentType.Scheduler] = new BuildComponentEntry(BuildComponentType.Scheduler, Scheduler.CreateComponent, CreationPattern.Singleton); 61_componentEntriesByType[BuildComponentType.ConfigCache] = new BuildComponentEntry(BuildComponentType.ConfigCache, ConfigCache.CreateComponent, CreationPattern.Singleton); 62_componentEntriesByType[BuildComponentType.ResultsCache] = new BuildComponentEntry(BuildComponentType.ResultsCache, ResultsCache.CreateComponent, CreationPattern.Singleton); 63_componentEntriesByType[BuildComponentType.NodeManager] = new BuildComponentEntry(BuildComponentType.NodeManager, NodeManager.CreateComponent, CreationPattern.Singleton); 64_componentEntriesByType[BuildComponentType.TaskHostNodeManager] = new BuildComponentEntry(BuildComponentType.TaskHostNodeManager, TaskHostNodeManager.CreateComponent, CreationPattern.Singleton); 66_componentEntriesByType[BuildComponentType.NodeLauncher] = new BuildComponentEntry(BuildComponentType.NodeLauncher, NodeLauncher.CreateComponent, CreationPattern.Singleton); 67_componentEntriesByType[BuildComponentType.InProcNodeProvider] = new BuildComponentEntry(BuildComponentType.InProcNodeProvider, NodeProviderInProc.CreateComponent, CreationPattern.Singleton); 68_componentEntriesByType[BuildComponentType.OutOfProcNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcNodeProvider, NodeProviderOutOfProc.CreateComponent, CreationPattern.Singleton); 69_componentEntriesByType[BuildComponentType.OutOfProcTaskHostNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcTaskHostNodeProvider, NodeProviderOutOfProcTaskHost.CreateComponent, CreationPattern.Singleton); 74_componentEntriesByType[BuildComponentType.RequestEngine] = new BuildComponentEntry(BuildComponentType.RequestEngine, BuildRequestEngine.CreateComponent, CreationPattern.Singleton); 78_componentEntriesByType[BuildComponentType.LoggingService] = new BuildComponentEntry(BuildComponentType.LoggingService, null); 79_componentEntriesByType[BuildComponentType.RequestBuilder] = new BuildComponentEntry(BuildComponentType.RequestBuilder, RequestBuilder.CreateComponent, CreationPattern.CreateAlways); 81_componentEntriesByType[BuildComponentType.BuildCheckManagerProvider] = new BuildComponentEntry(BuildComponentType.BuildCheckManagerProvider, BuildCheckManagerProvider.CreateComponent, CreationPattern.Singleton); 82_componentEntriesByType[BuildComponentType.TargetBuilder] = new BuildComponentEntry(BuildComponentType.TargetBuilder, TargetBuilder.CreateComponent, CreationPattern.CreateAlways); 83_componentEntriesByType[BuildComponentType.TaskBuilder] = new BuildComponentEntry(BuildComponentType.TaskBuilder, TaskBuilder.CreateComponent, CreationPattern.CreateAlways); 84_componentEntriesByType[BuildComponentType.RegisteredTaskObjectCache] = new BuildComponentEntry(BuildComponentType.RegisteredTaskObjectCache, RegisteredTaskObjectCache.CreateComponent, CreationPattern.Singleton); 87_componentEntriesByType[BuildComponentType.SdkResolverService] = new BuildComponentEntry(BuildComponentType.SdkResolverService, MainNodeSdkResolverService.CreateComponent, CreationPattern.Singleton); 99foreach (KeyValuePair<BuildComponentType, BuildComponentEntry> componentEntry in _componentEntriesByType) 111public void ShutdownComponent(BuildComponentType componentType) 122public void ReplaceFactory(BuildComponentType componentType, BuildComponentFactoryDelegate factory) 133public void ReplaceFactory(BuildComponentType componentType, IBuildComponent instance) 145public void AddFactory(BuildComponentType componentType, BuildComponentFactoryDelegate factory, CreationPattern creationPattern) 155public IBuildComponent GetComponent(BuildComponentType type) 165internal TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent 188public BuildComponentEntry(BuildComponentType type, BuildComponentFactoryDelegate factory, CreationPattern pattern) 198public BuildComponentEntry(BuildComponentType type, IBuildComponent singleton) 208private BuildComponentType ComponentType { get; }
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (14)
286IBuildCheckManagerProvider buildCheckProvider = (_componentHost.GetComponent(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider); 339IResultsCache cache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache); 342BuildRequestConfiguration config = ((IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache))[request.ConfigurationId]; 431IResultsCache resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache); 432IConfigCache configCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 512IConfigCache globalConfigurations = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 522IResultsCache resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache); 596_configCache = (IConfigCache)host.GetComponent(BuildComponentType.ConfigCache); 623internal static IBuildComponent CreateComponent(BuildComponentType type) 625ErrorUtilities.VerifyThrow(type == BuildComponentType.RequestEngine, "Cannot create component of type {0}", type); 878_componentHost.GetComponent(BuildComponentType.ResultsCache) as IResultsCache; 944IRequestBuilder builder = (IRequestBuilder)_componentHost.GetComponent(BuildComponentType.RequestBuilder); 1121IConfigCache globalConfigCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 1211IResultsCache resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache);
BackEnd\Components\Caching\ConfigCache.cs (2)
389internal static IBuildComponent CreateComponent(BuildComponentType componentType) 391ErrorUtilities.VerifyThrow(componentType == BuildComponentType.ConfigCache, "Cannot create components of type {0}", componentType);
BackEnd\Components\Caching\RegisteredTaskObjectCache.cs (2)
60internal static IBuildComponent CreateComponent(BuildComponentType type) 62ErrorUtilities.VerifyThrow(type == BuildComponentType.RegisteredTaskObjectCache, "Cannot create components of type {0}", type);
BackEnd\Components\Caching\ResultsCache.cs (2)
300internal static IBuildComponent CreateComponent(BuildComponentType componentType) 302ErrorUtilities.VerifyThrow(componentType == BuildComponentType.ResultsCache, "Cannot create components of type {0}", componentType);
BackEnd\Components\Communications\NodeLauncher.cs (2)
21public static IBuildComponent CreateComponent(BuildComponentType type) 23ErrorUtilities.VerifyThrowArgumentOutOfRange(type == BuildComponentType.NodeLauncher, nameof(type));
BackEnd\Components\Communications\NodeManager.cs (4)
175_inProcNodeProvider = _componentHost.GetComponent(BuildComponentType.InProcNodeProvider) as INodeProvider; 176_outOfProcNodeProvider = _componentHost.GetComponent(BuildComponentType.OutOfProcNodeProvider) as INodeProvider; 278internal static IBuildComponent CreateComponent(BuildComponentType type) 280ErrorUtilities.VerifyThrow(type == BuildComponentType.NodeManager, "Cannot create component of type {0}", type);
BackEnd\Components\Communications\NodeProviderInProc.cs (2)
350internal static IBuildComponent CreateComponent(BuildComponentType type) 352ErrorUtilities.VerifyThrow(type == BuildComponentType.InProcNodeProvider, "Cannot create component of type {0}", type);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
195internal static IBuildComponent CreateComponent(BuildComponentType componentType) 197ErrorUtilities.VerifyThrow(componentType == BuildComponentType.OutOfProcNodeProvider, "Factory cannot create components of type {0}", componentType);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
335INodeLauncher nodeLauncher = (INodeLauncher)_componentHost.GetComponent(BuildComponentType.NodeLauncher);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (2)
348internal static IBuildComponent CreateComponent(BuildComponentType componentType) 350ErrorUtilities.VerifyThrow(componentType == BuildComponentType.OutOfProcTaskHostNodeProvider, "Factory cannot create components of type {0}", componentType);
BackEnd\Components\Communications\TaskHostNodeManager.cs (3)
93_outOfProcTaskHostNodeProvider = _componentHost.GetComponent(BuildComponentType.OutOfProcTaskHostNodeProvider) as INodeProvider; 167internal static IBuildComponent CreateComponent(BuildComponentType type) 169ErrorUtilities.VerifyThrow(type == BuildComponentType.TaskHostNodeManager, "Cannot create component of type {0}", type);
BackEnd\Components\IBuildComponentHost.cs (4)
17internal delegate IBuildComponent BuildComponentFactoryDelegate(BuildComponentType type); 189void RegisterFactory(BuildComponentType factoryType, BuildComponentFactoryDelegate factory); 196IBuildComponent GetComponent(BuildComponentType type); 204TComponent GetComponent<TComponent>(BuildComponentType type)
BackEnd\Components\Logging\LoggingService.cs (2)
304_configCache = new Lazy<IConfigCache>(() => (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache), LazyThreadSafetyMode.PublicationOnly); 873_buildEngineDataRouter = (buildComponentHost.GetComponent(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider)?.BuildEngineDataRouter;
BackEnd\Components\Logging\LoggingServiceFactory.cs (2)
49public IBuildComponent CreateInstance(BuildComponentType type) 51ErrorUtilities.VerifyThrow(type == BuildComponentType.LoggingService, "Cannot create components of type {0}", type);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (5)
213_targetBuilder = (ITargetBuilder)_componentHost.GetComponent(BuildComponentType.TargetBuilder); 628internal static IBuildComponent CreateComponent(BuildComponentType type) 630ErrorUtilities.VerifyThrow(type == BuildComponentType.RequestBuilder, "Cannot create components of type {0}", type); 1113: (_componentHost.GetComponent(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider)!.Instance; 1234var resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (5)
133IResultsCache resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache); 165ITaskBuilder taskBuilder = _componentHost.GetComponent(BuildComponentType.TaskBuilder) as ITaskBuilder; 260ITaskBuilder taskBuilder = _componentHost.GetComponent(BuildComponentType.TaskBuilder) as ITaskBuilder; 392internal static IBuildComponent CreateComponent(BuildComponentType type) 394ErrorUtilities.VerifyThrow(type == BuildComponentType.TargetBuilder, "Cannot create components of type {0}", type);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
226internal static IBuildComponent CreateComponent(BuildComponentType type) 228ErrorUtilities.VerifyThrow(type == BuildComponentType.TaskBuilder, "Cannot create components of type {0}", type);
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
619var objectCache = (IRegisteredTaskObjectCache)_host.GetComponent(BuildComponentType.RegisteredTaskObjectCache); 628var objectCache = (IRegisteredTaskObjectCache)_host.GetComponent(BuildComponentType.RegisteredTaskObjectCache); 637var objectCache = (IRegisteredTaskObjectCache)_host.GetComponent(BuildComponentType.RegisteredTaskObjectCache);
BackEnd\Components\Scheduler\Scheduler.cs (5)
631_resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache); 632_configCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 649internal static IBuildComponent CreateComponent(BuildComponentType componentType) 651ErrorUtilities.VerifyThrow(componentType == BuildComponentType.Scheduler, "Cannot create components of type {0}", componentType); 1966var configCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache);
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (6)
25/// must have access to an <see cref="IBuildComponentHost"/> and call <see cref="IBuildComponentHost.GetComponent"/> and pass <see cref="BuildComponentType.SdkResolverService"/>. 34public static IBuildComponent CreateComponent(BuildComponentType type) 36ErrorUtilities.VerifyThrowArgumentOutOfRange(type == BuildComponentType.SdkResolverService, nameof(type)); 75ILoggingService loggingService = Host.GetComponent(BuildComponentType.LoggingService) as ILoggingService; 83ILoggingService loggingService = Host.GetComponent(BuildComponentType.LoggingService) as ILoggingService; 92INodeManager nodeManager = Host.GetComponent(BuildComponentType.NodeManager) as INodeManager;
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (1)
25/// must have access to an <see cref="IBuildComponentHost"/> and call <see cref="IBuildComponentHost.GetComponent"/> and pass <see cref="BuildComponentType.SdkResolverService"/>.
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverServiceFactory.cs (1)
26public IBuildComponent CreateInstance(BuildComponentType type)
BackEnd\Node\InProcNode.cs (2)
117_buildRequestEngine = componentHost.GetComponent(BuildComponentType.RequestEngine) as IBuildRequestEngine; 324IRegisteredTaskObjectCache objectCache = (IRegisteredTaskObjectCache)(_componentHost.GetComponent(BuildComponentType.RegisteredTaskObjectCache));
BackEnd\Node\OutOfProcNode.cs (13)
151_buildRequestEngine = (this as IBuildComponentHost).GetComponent(BuildComponentType.RequestEngine) as IBuildRequestEngine; 152_globalConfigCache = (this as IBuildComponentHost).GetComponent(BuildComponentType.ConfigCache) as IConfigCache; 153_taskHostNodeManager = (this as IBuildComponentHost).GetComponent(BuildComponentType.TaskHostNodeManager) as INodeManager; 157((IBuildComponentHost)this).RegisterFactory(BuildComponentType.SdkResolverService, sdkResolverServiceFactory.CreateInstance); 158_sdkResolverService = (this as IBuildComponentHost).GetComponent(BuildComponentType.SdkResolverService) as ISdkResolverService; 291void IBuildComponentHost.RegisterFactory(BuildComponentType factoryType, BuildComponentFactoryDelegate factory) 301IBuildComponent IBuildComponentHost.GetComponent(BuildComponentType type) 306TComponent IBuildComponentHost.GetComponent<TComponent>(BuildComponentType type) 462IRegisteredTaskObjectCache objectCache = (IRegisteredTaskObjectCache)(_componentFactories.GetComponent(BuildComponentType.RegisteredTaskObjectCache)); 536if (_componentFactories.GetComponent(BuildComponentType.ConfigCache) is IConfigCache configCache) 541if (_componentFactories.GetComponent(BuildComponentType.ResultsCache) is IResultsCache resultsCache) 759_componentFactories.ReplaceFactory(BuildComponentType.LoggingService, loggingServiceFactory.CreateInstance); 761_loggingService = _componentFactories.GetComponent(BuildComponentType.LoggingService) as ILoggingService;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
464ISdkResolverService sdkResolverService = componentHost.GetComponent(BuildComponentType.SdkResolverService) as ISdkResolverService;
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
34internal static IBuildComponent CreateComponent(BuildComponentType type) 36ErrorUtilities.VerifyThrow(type == BuildComponentType.BuildCheckManagerProvider, "Cannot create components of type {0}", type);
BuildCheck\Infrastructure\BuildCheckReplayModeConnector.cs (1)
30.GetComponent(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider;
Instance\TaskFactories\TaskHostTask.cs (1)
261_taskHostProvider = (NodeProviderOutOfProcTaskHost)_buildComponentHost.GetComponent(BuildComponentType.OutOfProcTaskHostNodeProvider);
Microsoft.Build.Engine.UnitTests (180)
BackEnd\BuildManager_Tests.cs (4)
1922host.GetComponent(BuildComponentType.ConfigCache); 1948host.GetComponent(BuildComponentType.ConfigCache); 1980host.GetComponent(BuildComponentType.ConfigCache); 2032host.GetComponent(BuildComponentType.ConfigCache);
BackEnd\BuildRequestEngine_Tests.cs (5)
294_engine = (IBuildRequestEngine)_host.GetComponent(BuildComponentType.RequestEngine); 295_cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 401MockRequestBuilder builder = (MockRequestBuilder)_host.GetComponent(BuildComponentType.RequestBuilder); 454MockRequestBuilder builder = (MockRequestBuilder)_host.GetComponent(BuildComponentType.RequestBuilder); 520IBuildRequestEngine engine = (IBuildRequestEngine)_host.GetComponent(BuildComponentType.RequestEngine);
BackEnd\LoggingService_Tests.cs (1)
966ConfigCache configCache = host.GetComponent(BuildComponentType.ConfigCache) as ConfigCache;
BackEnd\LoggingServiceFactory_Tests.cs (2)
24LoggingService loggingService = (LoggingService)factory.CreateInstance(BuildComponentType.LoggingService); 35LoggingService loggingService = (LoggingService)factory.CreateInstance(BuildComponentType.LoggingService);
BackEnd\LoggingServicesLogMethod_Tests.cs (5)
839ConfigCache cache = (ConfigCache)componentHost.GetComponent(BuildComponentType.ConfigCache); 865ConfigCache cache = (ConfigCache)componentHost.GetComponent(BuildComponentType.ConfigCache); 904ConfigCache cache = (ConfigCache)componentHost.GetComponent(BuildComponentType.ConfigCache); 945ConfigCache cache = (ConfigCache)componentHost.GetComponent(BuildComponentType.ConfigCache); 1418ConfigCache cache = (ConfigCache)componentHost.GetComponent(BuildComponentType.ConfigCache);
BackEnd\MockHost.cs (11)
192public IBuildComponent GetComponent(BuildComponentType type) 196BuildComponentType.ConfigCache => (IBuildComponent)_configCache, 197BuildComponentType.LoggingService => (IBuildComponent)_loggingService, 198BuildComponentType.RequestEngine => (IBuildComponent)_requestEngine, 199BuildComponentType.TargetBuilder => (IBuildComponent)_targetBuilder, 200BuildComponentType.ResultsCache => (IBuildComponent)_resultsCache, 201BuildComponentType.RequestBuilder => (IBuildComponent)_requestBuilder, 202BuildComponentType.SdkResolverService => (IBuildComponent)_sdkResolverService, 203BuildComponentType.BuildCheckManagerProvider => (IBuildComponent)_buildCheckManagerProvider, 208public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent 214public void RegisterFactory(BuildComponentType type, BuildComponentFactoryDelegate factory)
BackEnd\NodeEndpointInProc_Tests.cs (3)
79public IBuildComponent GetComponent(BuildComponentType type) 84public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent => throw new NotImplementedException("Not expected to be used."); 86public void RegisterFactory(BuildComponentType type, BuildComponentFactoryDelegate factory)
BackEnd\RequestBuilder_Tests.cs (12)
61_requestBuilder = (IRequestBuilder)_host.GetComponent(BuildComponentType.RequestBuilder); 83TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 84IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 113TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 114IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 146TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 147IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 185TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 186IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 224TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 225IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 300IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache);
BackEnd\Scheduler_Tests.cs (7)
68NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 95NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)_buildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 375NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 569NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 613Assert.Null(((ResultsCacheWithOverride)_host.GetComponent(BuildComponentType.ResultsCache)).CurrentCache.GetResultsForConfiguration(1)); 738(_host.GetComponent(BuildComponentType.ConfigCache) as IConfigCache).AddConfiguration(config); 761(_host.GetComponent(BuildComponentType.ResultsCache) as IResultsCache).AddResult(result);
BackEnd\SdkResultOutOfProc_Tests.cs (1)
273((IBuildComponentHost)_buildManager).RegisterFactory(BuildComponentType.SdkResolverService, type =>
BackEnd\TargetBuilder_Tests.cs (90)
102TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 103IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 122TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 123IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 135IResultsCache resultsCache = (IResultsCache)_host.GetComponent(BuildComponentType.ResultsCache); 149TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 150IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 158IResultsCache resultsCache = (IResultsCache)_host.GetComponent(BuildComponentType.ResultsCache); 175TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 176MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 179IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 191IResultsCache resultsCache = (IResultsCache)_host.GetComponent(BuildComponentType.ResultsCache); 363TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 364IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 503TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 504IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 529TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 530IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 555TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 556IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 580MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 585TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 586IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 615MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 620TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 621IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 652TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 653IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 683TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 684IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 709TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 710IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 745TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 746IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 771TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 772IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 798TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 799IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 823MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 828TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 829IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 867MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 872TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 873IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 899TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 900IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 926TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 927IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 958TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 959IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1056TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1057IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1091TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1092IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1142TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1143IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1202TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1203IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1239MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 1244TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1245IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1290TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1291IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1321TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1322IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1395TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1396IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1424TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1425MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 1429IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1435IResultsCache resultsCache = (IResultsCache)_host.GetComponent(BuildComponentType.ResultsCache); 1452TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1453MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 1456IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1461IResultsCache resultsCache = (IResultsCache)_host.GetComponent(BuildComponentType.ResultsCache); 1545MockTaskBuilder mockBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 1675IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1707MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 1710TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1711IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1845public IBuildComponent GetComponent(BuildComponentType type) 1849BuildComponentType.ConfigCache => (IBuildComponent)_configCache, 1850BuildComponentType.LoggingService => (IBuildComponent)_loggingService, 1851BuildComponentType.ResultsCache => (IBuildComponent)_resultsCache, 1852BuildComponentType.RequestBuilder => (IBuildComponent)_requestBuilder, 1853BuildComponentType.TaskBuilder => (IBuildComponent)_taskBuilder, 1854BuildComponentType.TargetBuilder => (IBuildComponent)_targetBuilder, 1855BuildComponentType.SdkResolverService => (IBuildComponent)_sdkResolverService, 1860public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent 1866public void RegisterFactory(BuildComponentType type, BuildComponentFactoryDelegate factory)
BackEnd\TargetEntry_Tests.cs (24)
209MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 254MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 322MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 354MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 463MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 490MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 508MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 529MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 550MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 571MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 592MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 613MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 835NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 894NodeProviderInProc inProcNodeProvider = ((IBuildComponentHost)manager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 1003ITaskBuilder taskBuilder = _host.GetComponent(BuildComponentType.TaskBuilder) as ITaskBuilder; 1316public IBuildComponent GetComponent(BuildComponentType type) 1320BuildComponentType.ConfigCache => (IBuildComponent)_configCache, 1321BuildComponentType.LoggingService => (IBuildComponent)_loggingService, 1322BuildComponentType.ResultsCache => (IBuildComponent)_resultsCache, 1323BuildComponentType.RequestBuilder => (IBuildComponent)_requestBuilder, 1324BuildComponentType.TaskBuilder => (IBuildComponent)_taskBuilder, 1325BuildComponentType.SdkResolverService => (IBuildComponent)_sdkResolverService, 1330public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent 1336public void RegisterFactory(BuildComponentType type, BuildComponentFactoryDelegate factory)
BackEnd\TaskBuilder_Tests.cs (10)
1241IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1373public IBuildComponent GetComponent(BuildComponentType type) 1377BuildComponentType.ConfigCache => (IBuildComponent)_configCache, 1378BuildComponentType.LoggingService => (IBuildComponent)_loggingService, 1379BuildComponentType.ResultsCache => (IBuildComponent)_resultsCache, 1380BuildComponentType.RequestBuilder => (IBuildComponent)_requestBuilder, 1381BuildComponentType.TargetBuilder => (IBuildComponent)_targetBuilder, 1382BuildComponentType.SdkResolverService => (IBuildComponent)_sdkResolverService, 1387public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent 1393public void RegisterFactory(BuildComponentType type, BuildComponentFactoryDelegate factory)
BackEnd\TaskHost_Tests.cs (1)
66_loggingService = loggingFactory.CreateInstance(BuildComponentType.LoggingService) as LoggingService;
Construction\SolutionProjectGenerator_Tests.cs (4)
2115NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 2142NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)buildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 2203NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 2230NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)buildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;