7 implementations of GetComponent
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
1288
IBuildComponent IBuildComponentHost.
GetComponent
(BuildComponentType type)
BackEnd\Node\OutOfProcNode.cs (1)
302
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)
1844
public IBuildComponent
GetComponent
(BuildComponentType type)
BackEnd\TargetEntry_Tests.cs (1)
1315
public IBuildComponent
GetComponent
(BuildComponentType type)
BackEnd\TaskBuilder_Tests.cs (1)
1286
public IBuildComponent
GetComponent
(BuildComponentType type)
75 references to GetComponent
Microsoft.Build (60)
BackEnd\BuildManager\BuildManager.cs (7)
374
private ISdkResolverService SdkResolverService => ((this as IBuildComponentHost).
GetComponent
(BuildComponentType.SdkResolverService) as ISdkResolverService)!;
586
_nodeManager = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.NodeManager) as INodeManager;
908
_configCache = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.ConfigCache) as IConfigCache;
1238
_nodeManager ??= (INodeManager)((IBuildComponentHost)this).
GetComponent
(BuildComponentType.NodeManager);
2606
((FileAccessManager)((IBuildComponentHost)this).
GetComponent
(BuildComponentType.FileAccessManager)).ReportFileAccess(fileAccessReport.FileAccessData, nodeId);
2621
((FileAccessManager)((IBuildComponentHost)this).
GetComponent
(BuildComponentType.FileAccessManager)).ReportProcess(processReport.ProcessData, nodeId);
3003
((IBuildComponentHost)this).
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider;
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (13)
287
IBuildCheckManagerProvider buildCheckProvider = (_componentHost.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider);
291
ITelemetryForwarder telemetryForwarder = (_componentHost.
GetComponent
(BuildComponentType.TelemetryForwarder) as TelemetryForwarderProvider)!.Instance;
345
IResultsCache cache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
348
BuildRequestConfiguration config = ((IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache))[request.ConfigurationId];
437
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
438
IConfigCache configCache = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
518
IConfigCache globalConfigurations = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
528
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
602
_configCache = (IConfigCache)host.
GetComponent
(BuildComponentType.ConfigCache);
884
_componentHost.
GetComponent
(BuildComponentType.ResultsCache) as IResultsCache;
950
IRequestBuilder builder = (IRequestBuilder)_componentHost.
GetComponent
(BuildComponentType.RequestBuilder);
1127
IConfigCache globalConfigCache = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
1218
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
BackEnd\Components\Communications\DetouredNodeLauncher.cs (1)
38
_fileAccessManager = (IFileAccessManager)host.
GetComponent
(BuildComponentType.FileAccessManager);
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)
336
INodeLauncher nodeLauncher = (INodeLauncher)_componentHost.
GetComponent
(BuildComponentType.NodeLauncher);
BackEnd\Components\Communications\TaskHostNodeManager.cs (1)
93
_outOfProcTaskHostNodeProvider = _componentHost.
GetComponent
(BuildComponentType.OutOfProcTaskHostNodeProvider) as INodeProvider;
BackEnd\Components\FileAccesses\FileAccessManager.cs (2)
45
_scheduler = host.
GetComponent
(BuildComponentType.Scheduler) as IScheduler;
46
_configCache = host.
GetComponent
(BuildComponentType.ConfigCache) as IConfigCache;
BackEnd\Components\Logging\LoggingService.cs (2)
311
_configCache = new Lazy<IConfigCache>(() => (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache), LazyThreadSafetyMode.PublicationOnly);
880
_buildEngineDataRouter = (buildComponentHost.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider)?.BuildEngineDataRouter;
BackEnd\Components\RequestBuilder\RequestBuilder.cs (5)
213
_targetBuilder = (ITargetBuilder)_componentHost.
GetComponent
(BuildComponentType.TargetBuilder);
1100
: (_componentHost.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider)!.Instance;
1225
var resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
1254
((TelemetryForwarderProvider)_componentHost.
GetComponent
(BuildComponentType.TelemetryForwarder))
1262
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 (4)
620
var objectCache = (IRegisteredTaskObjectCache)_host.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache);
629
var objectCache = (IRegisteredTaskObjectCache)_host.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache);
638
var objectCache = (IRegisteredTaskObjectCache)_host.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache);
955
((IFileAccessManager)buildComponentHost.
GetComponent
(BuildComponentType.FileAccessManager)).ReportFileAccess(fileAccessData, buildComponentHost.BuildParameters.NodeId);
BackEnd\Components\Scheduler\Scheduler.cs (3)
630
_resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
631
_configCache = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
1962
var 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 (2)
117
_buildRequestEngine = componentHost.
GetComponent
(BuildComponentType.RequestEngine) as IBuildRequestEngine;
334
IRegisteredTaskObjectCache objectCache = (IRegisteredTaskObjectCache)(_componentHost.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache));
BackEnd\Node\OutOfProcNode.cs (5)
152
_buildRequestEngine = (this as IBuildComponentHost).
GetComponent
(BuildComponentType.RequestEngine) as IBuildRequestEngine;
153
_globalConfigCache = (this as IBuildComponentHost).
GetComponent
(BuildComponentType.ConfigCache) as IConfigCache;
154
_taskHostNodeManager = (this as IBuildComponentHost).
GetComponent
(BuildComponentType.TaskHostNodeManager) as INodeManager;
159
_sdkResolverService = (this as IBuildComponentHost).
GetComponent
(BuildComponentType.SdkResolverService) as ISdkResolverService;
308
=> (TComponent)((IBuildComponentHost)this).
GetComponent
(type);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
468
ISdkResolverService sdkResolverService = componentHost.
GetComponent
(BuildComponentType.SdkResolverService) as ISdkResolverService;
BuildCheck\Infrastructure\BuildCheckReplayModeConnector.cs (1)
30
.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider;
Instance\TaskFactories\TaskHostTask.cs (2)
263
_taskHostProvider = (NodeProviderOutOfProcTaskHost)_buildComponentHost.
GetComponent
(BuildComponentType.OutOfProcTaskHostNodeProvider);
453
IFileAccessManager fileAccessManager = ((IFileAccessManager)_buildComponentHost.
GetComponent
(BuildComponentType.FileAccessManager));
Microsoft.Build.Engine.UnitTests (15)
BackEnd\BuildManager_Tests.cs (4)
1921
host.
GetComponent
(BuildComponentType.ConfigCache);
1947
host.
GetComponent
(BuildComponentType.ConfigCache);
1979
host.
GetComponent
(BuildComponentType.ConfigCache);
2031
host.
GetComponent
(BuildComponentType.ConfigCache);
BackEnd\LoggingService_Tests.cs (1)
965
ConfigCache configCache = host.
GetComponent
(BuildComponentType.ConfigCache) as ConfigCache;
BackEnd\Scheduler_Tests.cs (4)
67
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
94
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)_buildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
374
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
568
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
BackEnd\TargetEntry_Tests.cs (2)
834
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
893
NodeProviderInProc inProcNodeProvider = ((IBuildComponentHost)manager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
Construction\SolutionProjectGenerator_Tests.cs (4)
2190
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
2217
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)buildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
2278
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
2305
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)buildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;