7 implementations of GetComponent
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
1476
IBuildComponent IBuildComponentHost.
GetComponent
(BuildComponentType type)
BackEnd\Node\OutOfProcNode.cs (1)
305
IBuildComponent IBuildComponentHost.
GetComponent
(BuildComponentType type)
Microsoft.Build.Engine.UnitTests (5)
BackEnd\MockHost.cs (1)
198
public IBuildComponent
GetComponent
(BuildComponentType type)
BackEnd\NodeEndpointInProc_Tests.cs (1)
78
public IBuildComponent
GetComponent
(BuildComponentType type)
BackEnd\TargetBuilder_Tests.cs (1)
1849
public IBuildComponent
GetComponent
(BuildComponentType type)
BackEnd\TargetEntry_Tests.cs (1)
1211
public IBuildComponent
GetComponent
(BuildComponentType type)
BackEnd\TaskBuilder_Tests.cs (1)
1229
public IBuildComponent
GetComponent
(BuildComponentType type)
65 references to GetComponent
Microsoft.Build (50)
BackEnd\BuildManager\BuildManager.cs (5)
375
private ISdkResolverService SdkResolverService => ((this as IBuildComponentHost).
GetComponent
(BuildComponentType.SdkResolverService) as ISdkResolverService)!;
625
_nodeManager = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.NodeManager) as INodeManager;
930
_configCache = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.ConfigCache) as IConfigCache;
1426
_nodeManager ??= (INodeManager)((IBuildComponentHost)this).
GetComponent
(BuildComponentType.NodeManager);
3201
((IBuildComponentHost)this).
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider;
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (13)
213
var telemetryProvider = (TelemetryCollectorProvider)_componentHost.
GetComponent
(BuildComponentType.TelemetryCollector);
307
IBuildCheckManagerProvider buildCheckProvider = (_componentHost.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider);
365
IResultsCache cache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
368
BuildRequestConfiguration config = ((IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache))[request.ConfigurationId];
472
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
473
IConfigCache configCache = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
558
IConfigCache globalConfigurations = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
568
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
642
_configCache = (IConfigCache)host.
GetComponent
(BuildComponentType.ConfigCache);
923
_componentHost.
GetComponent
(BuildComponentType.ResultsCache) as IResultsCache;
989
IRequestBuilder builder = (IRequestBuilder)_componentHost.
GetComponent
(BuildComponentType.RequestBuilder);
1166
IConfigCache globalConfigCache = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
1258
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
BackEnd\Components\Communications\NodeManager.cs (2)
175
_inProcNodeProvider = _componentHost.
GetComponent
(BuildComponentType.InProcNodeProvider) as INodeProvider;
176
_outOfProcNodeProvider = _componentHost.
GetComponent
(BuildComponentType.OutOfProcNodeProvider) as INodeProvider;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
403
INodeLauncher nodeLauncher = (INodeLauncher)_componentHost.
GetComponent
(BuildComponentType.NodeLauncher);
BackEnd\Components\Communications\TaskHostNodeManager.cs (1)
93
_outOfProcTaskHostNodeProvider = _componentHost.
GetComponent
(BuildComponentType.OutOfProcTaskHostNodeProvider) as INodeProvider;
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\RequestBuilder\RequestBuilder.cs (4)
216
_targetBuilder = (ITargetBuilder)_componentHost.
GetComponent
(BuildComponentType.TargetBuilder);
1139
: (_componentHost.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider)!.Instance;
1280
var resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
1315
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (3)
138
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
170
ITaskBuilder taskBuilder = _componentHost.
GetComponent
(BuildComponentType.TaskBuilder) as ITaskBuilder;
266
ITaskBuilder taskBuilder = _componentHost.
GetComponent
(BuildComponentType.TaskBuilder) as ITaskBuilder;
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
621
var objectCache = (IRegisteredTaskObjectCache)_host.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache);
630
var objectCache = (IRegisteredTaskObjectCache)_host.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache);
639
var objectCache = (IRegisteredTaskObjectCache)_host.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache);
BackEnd\Components\Scheduler\Scheduler.cs (2)
675
_resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
676
_configCache = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (4)
25
/// must have access to an <see cref="IBuildComponentHost"/> and call <see cref="IBuildComponentHost.
GetComponent
"/> and pass <see cref="BuildComponentType.SdkResolverService"/>.
75
ILoggingService loggingService = Host.
GetComponent
(BuildComponentType.LoggingService) as ILoggingService;
83
ILoggingService loggingService = Host.
GetComponent
(BuildComponentType.LoggingService) as ILoggingService;
92
INodeManager 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\Node\InProcNode.cs (1)
339
IRegisteredTaskObjectCache objectCache = (IRegisteredTaskObjectCache)(_componentHost.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache));
BackEnd\Node\OutOfProcNode.cs (5)
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;
162
_sdkResolverService = (this as IBuildComponentHost).
GetComponent
(BuildComponentType.SdkResolverService) as ISdkResolverService;
311
=> (TComponent)((IBuildComponentHost)this).
GetComponent
(type);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
493
ISdkResolverService sdkResolverService = componentHost.
GetComponent
(BuildComponentType.SdkResolverService) as ISdkResolverService;
BuildCheck\Infrastructure\BuildCheckReplayModeConnector.cs (1)
30
.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider;
Instance\TaskFactories\TaskHostTask.cs (1)
319
_taskHostProvider = (NodeProviderOutOfProcTaskHost)_buildComponentHost.
GetComponent
(BuildComponentType.OutOfProcTaskHostNodeProvider);
Microsoft.Build.Engine.UnitTests (15)
BackEnd\BuildManager_Tests.cs (4)
1922
host.
GetComponent
(BuildComponentType.ConfigCache);
1948
host.
GetComponent
(BuildComponentType.ConfigCache);
1980
host.
GetComponent
(BuildComponentType.ConfigCache);
2032
host.
GetComponent
(BuildComponentType.ConfigCache);
BackEnd\LoggingService_Tests.cs (1)
965
ConfigCache configCache = host.
GetComponent
(BuildComponentType.ConfigCache) as ConfigCache;
BackEnd\Scheduler_Tests.cs (4)
72
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
99
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)_buildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
379
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
573
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
BackEnd\TargetEntry_Tests.cs (2)
730
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
789
NodeProviderInProc inProcNodeProvider = ((IBuildComponentHost)manager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
Construction\SolutionProjectGenerator_Tests.cs (4)
2189
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
2216
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)buildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
2277
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
2304
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)buildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;