348 references to BuildComponentType
Microsoft.Build (168)
BackEnd\BuildManager\BuildManager.cs (25)
375private ISdkResolverService SdkResolverService => ((this as IBuildComponentHost).GetComponent(BuildComponentType.SdkResolverService) as ISdkResolverService)!; 381ILoggingService IBuildComponentHost.LoggingService => _componentFactories.GetComponent<ILoggingService>(BuildComponentType.LoggingService); 605NodeLauncher nodeLauncher = ((IBuildComponentHost)this).GetComponent<NodeLauncher>(BuildComponentType.NodeLauncher); 625_nodeManager = ((IBuildComponentHost)this).GetComponent(BuildComponentType.NodeManager) as INodeManager; 659_taskHostNodeManager = ((IBuildComponentHost)this).GetComponent<INodeManager>(BuildComponentType.TaskHostNodeManager); 660_scheduler = ((IBuildComponentHost)this).GetComponent<IScheduler>(BuildComponentType.Scheduler); 751_configCache = ((IBuildComponentHost)this).GetComponent<IConfigCache>(BuildComponentType.ConfigCache); 752_resultsCache = ((IBuildComponentHost)this).GetComponent<IResultsCache>(BuildComponentType.ResultsCache); 909_configCache = ((IBuildComponentHost)this).GetComponent<IConfigCache>(BuildComponentType.ConfigCache); 910_resultsCache = ((IBuildComponentHost)this).GetComponent<IResultsCache>(BuildComponentType.ResultsCache); 930_configCache = ((IBuildComponentHost)this).GetComponent(BuildComponentType.ConfigCache) as IConfigCache; 1426_nodeManager ??= (INodeManager)((IBuildComponentHost)this).GetComponent(BuildComponentType.NodeManager); 1466void IBuildComponentHost.RegisterFactory(BuildComponentType componentType, BuildComponentFactoryDelegate factory) 1476IBuildComponent IBuildComponentHost.GetComponent(BuildComponentType type) 1481TComponent IBuildComponentHost.GetComponent<TComponent>(BuildComponentType type) 2752ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 2765ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 2939IConfigCache configCache = _componentFactories.GetComponent<IConfigCache>(BuildComponentType.ConfigCache); 3037ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 3188_componentFactories.ReplaceFactory(BuildComponentType.LoggingService, loggingService as IBuildComponent); 3201((IBuildComponentHost)this).GetComponent(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider; 3409_componentFactories.ShutdownComponent(BuildComponentType.LoggingService); 3416_componentFactories.ReplaceFactory(BuildComponentType.LoggingService, (IBuildComponent?)null); 3517_componentFactories.ReplaceFactory(BuildComponentType.ConfigCache, new ConfigCacheWithOverride(cacheAggregation.ConfigCache)); 3518_componentFactories.ReplaceFactory(BuildComponentType.ResultsCache, new ResultsCacheWithOverride(cacheAggregation.ResultsCache));
BackEnd\Components\BuildComponentFactoryCollection.cs (48)
26private readonly Dictionary<BuildComponentType, BuildComponentEntry> _componentEntriesByType; 39_componentEntriesByType = new Dictionary<BuildComponentType, BuildComponentEntry>(); 63_componentEntriesByType[BuildComponentType.Scheduler] = new BuildComponentEntry(BuildComponentType.Scheduler, Scheduler.CreateComponent, CreationPattern.Singleton); 64_componentEntriesByType[BuildComponentType.ConfigCache] = new BuildComponentEntry(BuildComponentType.ConfigCache, ConfigCache.CreateComponent, CreationPattern.Singleton); 65_componentEntriesByType[BuildComponentType.ResultsCache] = new BuildComponentEntry(BuildComponentType.ResultsCache, ResultsCache.CreateComponent, CreationPattern.Singleton); 66_componentEntriesByType[BuildComponentType.NodeManager] = new BuildComponentEntry(BuildComponentType.NodeManager, NodeManager.CreateComponent, CreationPattern.Singleton); 67_componentEntriesByType[BuildComponentType.TaskHostNodeManager] = new BuildComponentEntry(BuildComponentType.TaskHostNodeManager, TaskHostNodeManager.CreateComponent, CreationPattern.Singleton); 69_componentEntriesByType[BuildComponentType.NodeLauncher] = new BuildComponentEntry(BuildComponentType.NodeLauncher, NodeLauncher.CreateComponent, CreationPattern.Singleton); 70_componentEntriesByType[BuildComponentType.InProcNodeProvider] = new BuildComponentEntry(BuildComponentType.InProcNodeProvider, NodeProviderInProc.CreateComponent, CreationPattern.Singleton); 71_componentEntriesByType[BuildComponentType.OutOfProcNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcNodeProvider, NodeProviderOutOfProc.CreateComponent, CreationPattern.Singleton); 72_componentEntriesByType[BuildComponentType.OutOfProcTaskHostNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcTaskHostNodeProvider, NodeProviderOutOfProcTaskHost.CreateComponent, CreationPattern.Singleton); 77_componentEntriesByType[BuildComponentType.RequestEngine] = new BuildComponentEntry(BuildComponentType.RequestEngine, BuildRequestEngine.CreateComponent, CreationPattern.Singleton); 81_componentEntriesByType[BuildComponentType.LoggingService] = new BuildComponentEntry(BuildComponentType.LoggingService, null); 82_componentEntriesByType[BuildComponentType.RequestBuilder] = new BuildComponentEntry(BuildComponentType.RequestBuilder, RequestBuilder.CreateComponent, CreationPattern.CreateAlways); 84_componentEntriesByType[BuildComponentType.BuildCheckManagerProvider] = new BuildComponentEntry(BuildComponentType.BuildCheckManagerProvider, BuildCheckManagerProvider.CreateComponent, CreationPattern.Singleton); 85_componentEntriesByType[BuildComponentType.TelemetryCollector] = new BuildComponentEntry(BuildComponentType.TelemetryCollector, TelemetryCollectorProvider.CreateComponent, CreationPattern.Singleton); 86_componentEntriesByType[BuildComponentType.TargetBuilder] = new BuildComponentEntry(BuildComponentType.TargetBuilder, TargetBuilder.CreateComponent, CreationPattern.CreateAlways); 87_componentEntriesByType[BuildComponentType.TaskBuilder] = new BuildComponentEntry(BuildComponentType.TaskBuilder, TaskBuilder.CreateComponent, CreationPattern.CreateAlways); 88_componentEntriesByType[BuildComponentType.RegisteredTaskObjectCache] = new BuildComponentEntry(BuildComponentType.RegisteredTaskObjectCache, RegisteredTaskObjectCache.CreateComponent, CreationPattern.Singleton); 91_componentEntriesByType[BuildComponentType.SdkResolverService] = new BuildComponentEntry(BuildComponentType.SdkResolverService, MainNodeSdkResolverService.CreateComponent, CreationPattern.Singleton); 103foreach (KeyValuePair<BuildComponentType, BuildComponentEntry> componentEntry in _componentEntriesByType) 115public void ShutdownComponent(BuildComponentType componentType) 126public void ReplaceFactory(BuildComponentType componentType, BuildComponentFactoryDelegate factory) 137public void ReplaceFactory(BuildComponentType componentType, IBuildComponent instance) 149public void AddFactory(BuildComponentType componentType, BuildComponentFactoryDelegate factory, CreationPattern creationPattern) 159public IBuildComponent GetComponent(BuildComponentType type) 169internal TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent 192public BuildComponentEntry(BuildComponentType type, BuildComponentFactoryDelegate factory, CreationPattern pattern) 202public BuildComponentEntry(BuildComponentType type, IBuildComponent singleton) 212private BuildComponentType ComponentType { get; }
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (15)
213var telemetryProvider = (TelemetryCollectorProvider)_componentHost.GetComponent(BuildComponentType.TelemetryCollector); 307IBuildCheckManagerProvider buildCheckProvider = (_componentHost.GetComponent(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider); 365IResultsCache cache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache); 368BuildRequestConfiguration config = ((IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache))[request.ConfigurationId]; 472IResultsCache resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache); 473IConfigCache configCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 558IConfigCache globalConfigurations = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 568IResultsCache resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache); 642_configCache = (IConfigCache)host.GetComponent(BuildComponentType.ConfigCache); 668internal static IBuildComponent CreateComponent(BuildComponentType type) 670ErrorUtilities.VerifyThrow(type == BuildComponentType.RequestEngine, "Cannot create component of type {0}", type); 923_componentHost.GetComponent(BuildComponentType.ResultsCache) as IResultsCache; 989IRequestBuilder builder = (IRequestBuilder)_componentHost.GetComponent(BuildComponentType.RequestBuilder); 1166IConfigCache globalConfigCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 1258IResultsCache resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache);
BackEnd\Components\Caching\ConfigCache.cs (2)
339internal static IBuildComponent CreateComponent(BuildComponentType componentType) 341ErrorUtilities.VerifyThrow(componentType == BuildComponentType.ConfigCache, "Cannot create components of type {0}", componentType);
BackEnd\Components\Caching\RegisteredTaskObjectCache.cs (2)
58internal static IBuildComponent CreateComponent(BuildComponentType type) 60ErrorUtilities.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)
29public static IBuildComponent CreateComponent(BuildComponentType type) 31ErrorUtilities.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; 288internal static IBuildComponent CreateComponent(BuildComponentType type) 290ErrorUtilities.VerifyThrow(type == BuildComponentType.NodeManager, "Cannot create component of type {0}", type);
BackEnd\Components\Communications\NodeProviderInProc.cs (2)
349internal static IBuildComponent CreateComponent(BuildComponentType type) 351ErrorUtilities.VerifyThrow(type == BuildComponentType.InProcNodeProvider, "Cannot create component of type {0}", type);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
199internal static IBuildComponent CreateComponent(BuildComponentType componentType) 201ErrorUtilities.VerifyThrow(componentType == BuildComponentType.OutOfProcNodeProvider, "Factory cannot create components of type {0}", componentType);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
403INodeLauncher nodeLauncher = (INodeLauncher)_componentHost.GetComponent(BuildComponentType.NodeLauncher);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (2)
374internal static IBuildComponent CreateComponent(BuildComponentType componentType) 376ErrorUtilities.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; 177internal static IBuildComponent CreateComponent(BuildComponentType type) 179ErrorUtilities.VerifyThrow(type == BuildComponentType.TaskHostNodeManager, "Cannot create component of type {0}", type);
BackEnd\Components\IBuildComponentHost.cs (4)
17internal delegate IBuildComponent BuildComponentFactoryDelegate(BuildComponentType type); 194void RegisterFactory(BuildComponentType factoryType, BuildComponentFactoryDelegate factory); 201IBuildComponent GetComponent(BuildComponentType type); 209TComponent GetComponent<TComponent>(BuildComponentType type)
BackEnd\Components\Logging\LoggingService.cs (2)
317_configCache = new Lazy<IConfigCache>(() => (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache), LazyThreadSafetyMode.PublicationOnly); 912_buildEngineDataRouter = (buildComponentHost.GetComponent(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider)?.BuildEngineDataRouter;
BackEnd\Components\Logging\LoggingServiceFactory.cs (2)
47public IBuildComponent CreateInstance(BuildComponentType type) 49ErrorUtilities.VerifyThrow(type == BuildComponentType.LoggingService, "Cannot create components of type {0}", type);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (6)
216_targetBuilder = (ITargetBuilder)_componentHost.GetComponent(BuildComponentType.TargetBuilder); 631internal static IBuildComponent CreateComponent(BuildComponentType type) 633ErrorUtilities.VerifyThrow(type == BuildComponentType.RequestBuilder, "Cannot create components of type {0}", type); 1139: (_componentHost.GetComponent(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider)!.Instance; 1280var resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache); 1315IResultsCache resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (5)
138IResultsCache resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache); 170ITaskBuilder taskBuilder = _componentHost.GetComponent(BuildComponentType.TaskBuilder) as ITaskBuilder; 266ITaskBuilder taskBuilder = _componentHost.GetComponent(BuildComponentType.TaskBuilder) as ITaskBuilder; 398internal static IBuildComponent CreateComponent(BuildComponentType type) 400ErrorUtilities.VerifyThrow(type == BuildComponentType.TargetBuilder, "Cannot create components of type {0}", type);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
241internal static IBuildComponent CreateComponent(BuildComponentType type) 243ErrorUtilities.VerifyThrow(type == BuildComponentType.TaskBuilder, "Cannot create components of type {0}", type);
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
621var objectCache = (IRegisteredTaskObjectCache)_host.GetComponent(BuildComponentType.RegisteredTaskObjectCache); 630var objectCache = (IRegisteredTaskObjectCache)_host.GetComponent(BuildComponentType.RegisteredTaskObjectCache); 639var objectCache = (IRegisteredTaskObjectCache)_host.GetComponent(BuildComponentType.RegisteredTaskObjectCache);
BackEnd\Components\Scheduler\Scheduler.cs (4)
675_resultsCache = (IResultsCache)_componentHost.GetComponent(BuildComponentType.ResultsCache); 676_configCache = (IConfigCache)_componentHost.GetComponent(BuildComponentType.ConfigCache); 693internal static IBuildComponent CreateComponent(BuildComponentType componentType) 695ErrorUtilities.VerifyThrow(componentType == BuildComponentType.Scheduler, "Cannot create components of type {0}", componentType);
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)
24public IBuildComponent CreateInstance(BuildComponentType type)
BackEnd\Node\InProcNode.cs (2)
120IBuildComponent buildRequestEngine = BuildRequestEngine.CreateComponent(BuildComponentType.RequestEngine); 339IRegisteredTaskObjectCache objectCache = (IRegisteredTaskObjectCache)(_componentHost.GetComponent(BuildComponentType.RegisteredTaskObjectCache));
BackEnd\Node\OutOfProcNode.cs (13)
155_buildRequestEngine = (this as IBuildComponentHost).GetComponent(BuildComponentType.RequestEngine) as IBuildRequestEngine; 156_globalConfigCache = (this as IBuildComponentHost).GetComponent(BuildComponentType.ConfigCache) as IConfigCache; 157_taskHostNodeManager = (this as IBuildComponentHost).GetComponent(BuildComponentType.TaskHostNodeManager) as INodeManager; 161((IBuildComponentHost)this).RegisterFactory(BuildComponentType.SdkResolverService, sdkResolverServiceFactory.CreateInstance); 162_sdkResolverService = (this as IBuildComponentHost).GetComponent(BuildComponentType.SdkResolverService) as ISdkResolverService; 295void IBuildComponentHost.RegisterFactory(BuildComponentType factoryType, BuildComponentFactoryDelegate factory) 305IBuildComponent IBuildComponentHost.GetComponent(BuildComponentType type) 310TComponent IBuildComponentHost.GetComponent<TComponent>(BuildComponentType type) 481IRegisteredTaskObjectCache objectCache = (IRegisteredTaskObjectCache)(_componentFactories.GetComponent(BuildComponentType.RegisteredTaskObjectCache)); 556if (_componentFactories.GetComponent(BuildComponentType.ConfigCache) is IConfigCache configCache) 561if (_componentFactories.GetComponent(BuildComponentType.ResultsCache) is IResultsCache resultsCache) 777_componentFactories.ReplaceFactory(BuildComponentType.LoggingService, loggingServiceFactory.CreateInstance); 779_loggingService = _componentFactories.GetComponent(BuildComponentType.LoggingService) as ILoggingService;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
493ISdkResolverService 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)
319_taskHostProvider = (NodeProviderOutOfProcTaskHost)_buildComponentHost.GetComponent(BuildComponentType.OutOfProcTaskHostNodeProvider);
TelemetryInfra\TelemetryCollectorProvider.cs (2)
29internal static IBuildComponent CreateComponent(BuildComponentType type) 31ErrorUtilities.VerifyThrow(type == BuildComponentType.TelemetryCollector, "Cannot create components of type {0}", type);
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)
287_engine = (IBuildRequestEngine)_host.GetComponent(BuildComponentType.RequestEngine); 288_cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 394MockRequestBuilder builder = (MockRequestBuilder)_host.GetComponent(BuildComponentType.RequestBuilder); 447MockRequestBuilder builder = (MockRequestBuilder)_host.GetComponent(BuildComponentType.RequestBuilder); 513IBuildRequestEngine engine = (IBuildRequestEngine)_host.GetComponent(BuildComponentType.RequestEngine);
BackEnd\LoggingService_Tests.cs (1)
965ConfigCache 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)
838ConfigCache cache = (ConfigCache)componentHost.GetComponent(BuildComponentType.ConfigCache); 864ConfigCache cache = (ConfigCache)componentHost.GetComponent(BuildComponentType.ConfigCache); 903ConfigCache cache = (ConfigCache)componentHost.GetComponent(BuildComponentType.ConfigCache); 944ConfigCache cache = (ConfigCache)componentHost.GetComponent(BuildComponentType.ConfigCache); 1417ConfigCache cache = (ConfigCache)componentHost.GetComponent(BuildComponentType.ConfigCache);
BackEnd\MockHost.cs (12)
198public IBuildComponent GetComponent(BuildComponentType type) 202BuildComponentType.ConfigCache => (IBuildComponent)_configCache, 203BuildComponentType.LoggingService => (IBuildComponent)_loggingService, 204BuildComponentType.RequestEngine => (IBuildComponent)_requestEngine, 205BuildComponentType.TargetBuilder => (IBuildComponent)_targetBuilder, 206BuildComponentType.ResultsCache => (IBuildComponent)_resultsCache, 207BuildComponentType.RequestBuilder => (IBuildComponent)_requestBuilder, 208BuildComponentType.SdkResolverService => (IBuildComponent)_sdkResolverService, 209BuildComponentType.BuildCheckManagerProvider => (IBuildComponent)_buildCheckManagerProvider, 210BuildComponentType.TelemetryCollector => (IBuildComponent)_telemetryCollector, 215public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent 221public void RegisterFactory(BuildComponentType type, BuildComponentFactoryDelegate factory)
BackEnd\NodeEndpointInProc_Tests.cs (3)
78public IBuildComponent GetComponent(BuildComponentType type) 83public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent => throw new NotImplementedException("Not expected to be used."); 85public void RegisterFactory(BuildComponentType type, BuildComponentFactoryDelegate factory)
BackEnd\RequestBuilder_Tests.cs (12)
67_requestBuilder = (IRequestBuilder)_host.GetComponent(BuildComponentType.RequestBuilder); 89TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 90IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 119TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 120IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 152TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 153IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 191TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 192IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 230TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 231IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 306IConfigCache configCache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache);
BackEnd\Scheduler_Tests.cs (7)
72NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 99NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)_buildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 379NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 573NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 617Assert.Null(((ResultsCacheWithOverride)_host.GetComponent(BuildComponentType.ResultsCache)).CurrentCache.GetResultsForConfiguration(1)); 742(_host.GetComponent(BuildComponentType.ConfigCache) as IConfigCache).AddConfiguration(config); 765(_host.GetComponent(BuildComponentType.ResultsCache) as IResultsCache).AddResult(result);
BackEnd\SdkResultOutOfProc_Tests.cs (1)
259((IBuildComponentHost)_buildManager).RegisterFactory(BuildComponentType.SdkResolverService, type =>
BackEnd\TargetBuilder_Tests.cs (90)
106TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 107IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 126TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 127IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 139IResultsCache resultsCache = (IResultsCache)_host.GetComponent(BuildComponentType.ResultsCache); 153TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 154IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 162IResultsCache resultsCache = (IResultsCache)_host.GetComponent(BuildComponentType.ResultsCache); 179TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 180MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 183IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 195IResultsCache resultsCache = (IResultsCache)_host.GetComponent(BuildComponentType.ResultsCache); 367TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 368IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 507TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 508IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 533TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 534IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 559TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 560IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 584MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 589TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 590IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 619MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 624TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 625IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 656TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 657IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 687TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 688IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 713TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 714IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 749TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 750IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 775TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 776IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 802TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 803IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 827MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 832TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 833IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 871MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 876TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 877IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 903TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 904IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 930TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 931IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 962TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 963IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1060TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1061IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1095TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1096IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1146TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1147IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1206TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1207IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1243MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 1248TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1249IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1294TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1295IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1325TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1326IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1399TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1400IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1428TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1429MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 1433IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1439IResultsCache resultsCache = (IResultsCache)_host.GetComponent(BuildComponentType.ResultsCache); 1456TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1457MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 1460IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1465IResultsCache resultsCache = (IResultsCache)_host.GetComponent(BuildComponentType.ResultsCache); 1549MockTaskBuilder mockBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 1679IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1711MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 1714TargetBuilder builder = (TargetBuilder)_host.GetComponent(BuildComponentType.TargetBuilder); 1715IConfigCache cache = (IConfigCache)_host.GetComponent(BuildComponentType.ConfigCache); 1849public IBuildComponent GetComponent(BuildComponentType type) 1853BuildComponentType.ConfigCache => (IBuildComponent)_configCache, 1854BuildComponentType.LoggingService => (IBuildComponent)_loggingService, 1855BuildComponentType.ResultsCache => (IBuildComponent)_resultsCache, 1856BuildComponentType.RequestBuilder => (IBuildComponent)_requestBuilder, 1857BuildComponentType.TaskBuilder => (IBuildComponent)_taskBuilder, 1858BuildComponentType.TargetBuilder => (IBuildComponent)_targetBuilder, 1859BuildComponentType.SdkResolverService => (IBuildComponent)_sdkResolverService, 1864public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent 1870public void RegisterFactory(BuildComponentType type, BuildComponentFactoryDelegate factory)
BackEnd\TargetEntry_Tests.cs (24)
211MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 253MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 318MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 347MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 453MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 479MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 497MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 516MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 534MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 552MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 570MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 588MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(BuildComponentType.TaskBuilder); 730NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 789NodeProviderInProc inProcNodeProvider = ((IBuildComponentHost)manager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 898ITaskBuilder taskBuilder = _host.GetComponent(BuildComponentType.TaskBuilder) as ITaskBuilder; 1211public IBuildComponent GetComponent(BuildComponentType type) 1215BuildComponentType.ConfigCache => (IBuildComponent)_configCache, 1216BuildComponentType.LoggingService => (IBuildComponent)_loggingService, 1217BuildComponentType.ResultsCache => (IBuildComponent)_resultsCache, 1218BuildComponentType.RequestBuilder => (IBuildComponent)_requestBuilder, 1219BuildComponentType.TaskBuilder => (IBuildComponent)_taskBuilder, 1220BuildComponentType.SdkResolverService => (IBuildComponent)_sdkResolverService, 1225public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent 1231public void RegisterFactory(BuildComponentType type, BuildComponentFactoryDelegate factory)
BackEnd\TaskBuilder_Tests.cs (9)
1229public IBuildComponent GetComponent(BuildComponentType type) 1233BuildComponentType.ConfigCache => (IBuildComponent)_configCache, 1234BuildComponentType.LoggingService => (IBuildComponent)_loggingService, 1235BuildComponentType.ResultsCache => (IBuildComponent)_resultsCache, 1236BuildComponentType.RequestBuilder => (IBuildComponent)_requestBuilder, 1237BuildComponentType.TargetBuilder => (IBuildComponent)_targetBuilder, 1238BuildComponentType.SdkResolverService => (IBuildComponent)_sdkResolverService, 1243public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent 1249public void RegisterFactory(BuildComponentType type, BuildComponentFactoryDelegate factory)
BackEnd\TaskHost_Tests.cs (1)
71_loggingService = loggingFactory.CreateInstance(BuildComponentType.LoggingService) as LoggingService;
Construction\SolutionProjectGenerator_Tests.cs (4)
2189NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 2216NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)buildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 2277NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc; 2304NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)buildManager).GetComponent(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;