2 implementations of GetComponent
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
1749
IBuildComponent IBuildComponentHost.
GetComponent
(BuildComponentType type)
BackEnd\Node\OutOfProcNode.cs (1)
320
IBuildComponent IBuildComponentHost.
GetComponent
(BuildComponentType type)
50 references to GetComponent
Microsoft.Build (50)
BackEnd\BuildManager\BuildManager.cs (5)
390
private ISdkResolverService SdkResolverService => ((this as IBuildComponentHost).
GetComponent
(BuildComponentType.SdkResolverService) as ISdkResolverService)!;
699
_nodeManager = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.NodeManager) as INodeManager;
1076
_configCache = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.ConfigCache) as IConfigCache;
1690
_nodeManager ??= (INodeManager)((IBuildComponentHost)this).
GetComponent
(BuildComponentType.NodeManager);
3514
((IBuildComponentHost)this).
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider;
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (12)
228
var telemetryProvider = (TelemetryCollectorProvider)_componentHost.
GetComponent
(BuildComponentType.TelemetryCollector);
322
IBuildCheckManagerProvider buildCheckProvider = (_componentHost.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider);
380
IResultsCache cache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
383
BuildRequestConfiguration config = ((IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache))[request.ConfigurationId];
488
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
489
IConfigCache configCache = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
574
IConfigCache globalConfigurations = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
584
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
659
_configCache = (IConfigCache)host.
GetComponent
(BuildComponentType.ConfigCache);
1009
IRequestBuilder builder = (IRequestBuilder)_componentHost.
GetComponent
(BuildComponentType.RequestBuilder);
1186
IConfigCache globalConfigCache = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
1273
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
BackEnd\Components\Communications\NodeManager.cs (2)
171
_inProcNodeProvider = _componentHost.
GetComponent
(BuildComponentType.InProcNodeProvider) as INodeProvider;
172
_outOfProcNodeProvider = _componentHost.
GetComponent
(BuildComponentType.OutOfProcNodeProvider) as INodeProvider;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
452
INodeLauncher nodeLauncher = (INodeLauncher)_componentHost.
GetComponent
(BuildComponentType.NodeLauncher);
BackEnd\Components\Communications\TaskHostNodeManager.cs (1)
92
_outOfProcTaskHostNodeProvider = _componentHost.
GetComponent
(BuildComponentType.OutOfProcTaskHostNodeProvider) as INodeProvider;
BackEnd\Components\Logging\LoggingService.cs (2)
348
_configCache = new Lazy<IConfigCache>(() => (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache), LazyThreadSafetyMode.PublicationOnly);
942
_buildEngineDataRouter = (buildComponentHost.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider)?.BuildEngineDataRouter;
BackEnd\Components\RequestBuilder\RequestBuilder.cs (4)
217
_targetBuilder = (ITargetBuilder)_componentHost.
GetComponent
(BuildComponentType.TargetBuilder);
1155
: (_componentHost.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider)!.Instance;
1312
var resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
1369
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (3)
141
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
173
ITaskBuilder taskBuilder = _componentHost.
GetComponent
(BuildComponentType.TaskBuilder) as ITaskBuilder;
269
ITaskBuilder taskBuilder = _componentHost.
GetComponent
(BuildComponentType.TaskBuilder) as ITaskBuilder;
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
662
var objectCache = (IRegisteredTaskObjectCache)_host.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache);
671
var objectCache = (IRegisteredTaskObjectCache)_host.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache);
680
var objectCache = (IRegisteredTaskObjectCache)_host.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache);
BackEnd\Components\Scheduler\Scheduler.cs (3)
691
_resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
692
_configCache = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
2240
var telemetryProvider = (TelemetryCollectorProvider)_componentHost.
GetComponent
(BuildComponentType.TelemetryCollector);
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (4)
24
/// must have access to an <see cref="IBuildComponentHost"/> and call <see cref="IBuildComponentHost.
GetComponent
"/> and pass <see cref="BuildComponentType.SdkResolverService"/>.
74
ILoggingService loggingService = Host.
GetComponent
(BuildComponentType.LoggingService) as ILoggingService;
82
ILoggingService loggingService = Host.
GetComponent
(BuildComponentType.LoggingService) as ILoggingService;
91
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)
334
IRegisteredTaskObjectCache objectCache = (IRegisteredTaskObjectCache)(_componentHost.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache));
BackEnd\Node\OutOfProcNode.cs (5)
170
_buildRequestEngine = (this as IBuildComponentHost).
GetComponent
(BuildComponentType.RequestEngine) as IBuildRequestEngine;
171
_globalConfigCache = (this as IBuildComponentHost).
GetComponent
(BuildComponentType.ConfigCache) as IConfigCache;
172
_taskHostNodeManager = (this as IBuildComponentHost).
GetComponent
(BuildComponentType.TaskHostNodeManager) as INodeManager;
177
_sdkResolverService = (this as IBuildComponentHost).
GetComponent
(BuildComponentType.SdkResolverService) as ISdkResolverService;
326
=> (TComponent)((IBuildComponentHost)this).
GetComponent
(type);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
560
ISdkResolverService sdkResolverService = componentHost.
GetComponent
(BuildComponentType.SdkResolverService) as ISdkResolverService;
BuildCheck\Infrastructure\BuildCheckReplayModeConnector.cs (1)
30
.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider;
Instance\TaskFactories\TaskHostTask.cs (1)
368
_taskHostProvider = (NodeProviderOutOfProcTaskHost)_buildComponentHost.
GetComponent
(BuildComponentType.OutOfProcTaskHostNodeProvider);