7 implementations of GetComponent
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
1245
IBuildComponent IBuildComponentHost.
GetComponent
(BuildComponentType type)
BackEnd\Node\OutOfProcNode.cs (1)
301
IBuildComponent IBuildComponentHost.
GetComponent
(BuildComponentType type)
Microsoft.Build.Engine.UnitTests (5)
BackEnd\MockHost.cs (1)
192
public IBuildComponent
GetComponent
(BuildComponentType type)
BackEnd\NodeEndpointInProc_Tests.cs (1)
79
public IBuildComponent
GetComponent
(BuildComponentType type)
BackEnd\TargetBuilder_Tests.cs (1)
1812
public IBuildComponent
GetComponent
(BuildComponentType type)
BackEnd\TargetEntry_Tests.cs (1)
1313
public IBuildComponent
GetComponent
(BuildComponentType type)
BackEnd\TaskBuilder_Tests.cs (1)
1361
public IBuildComponent
GetComponent
(BuildComponentType type)
79 references to GetComponent
Microsoft.Build (64)
BackEnd\BuildManager\BuildManager.cs (17)
379
private ISdkResolverService SdkResolverService => (this as IBuildComponentHost).
GetComponent
(BuildComponentType.SdkResolverService) as ISdkResolverService;
574
_nodeManager = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.NodeManager) as INodeManager;
587
var fileAccessManager = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.FileAccessManager) as IFileAccessManager;
599
_taskHostNodeManager = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.TaskHostNodeManager) as INodeManager;
600
_scheduler = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.Scheduler) as IScheduler;
691
_configCache = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.ConfigCache) as IConfigCache;
692
_resultsCache = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.ResultsCache) as IResultsCache;
846
_configCache = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.ConfigCache) as IConfigCache;
847
_resultsCache = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.ResultsCache) as IResultsCache;
867
_configCache = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.ConfigCache) as IConfigCache;
1195
_nodeManager ??= (INodeManager)((IBuildComponentHost)this).
GetComponent
(BuildComponentType.NodeManager);
2496
ILoggingService loggingService = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.LoggingService) as ILoggingService;
2516
ILoggingService loggingService = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.LoggingService) as ILoggingService;
2552
((FileAccessManager)((IBuildComponentHost)this).
GetComponent
(BuildComponentType.FileAccessManager)).ReportFileAccess(fileAccessReport.FileAccessData, nodeId);
2567
((FileAccessManager)((IBuildComponentHost)this).
GetComponent
(BuildComponentType.FileAccessManager)).ReportProcess(processReport.ProcessData, nodeId);
2826
ILoggingService loggingService = ((IBuildComponentHost)this).
GetComponent
(BuildComponentType.LoggingService) as ILoggingService;
2989
((IBuildComponentHost)this).
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider;
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (12)
286
var buildCheckManager = (_componentHost.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider)!.Instance;
336
IResultsCache cache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
339
BuildRequestConfiguration config = ((IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache))[request.ConfigurationId];
428
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
429
IConfigCache configCache = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
509
IConfigCache globalConfigurations = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
519
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
593
_configCache = (IConfigCache)host.
GetComponent
(BuildComponentType.ConfigCache);
875
_componentHost.
GetComponent
(BuildComponentType.ResultsCache) as IResultsCache;
941
IRequestBuilder builder = (IRequestBuilder)_componentHost.
GetComponent
(BuildComponentType.RequestBuilder);
1118
IConfigCache globalConfigCache = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
1208
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
BackEnd\Components\Communications\DetouredNodeLauncher.cs (1)
40
_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)
335
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 (1)
304
_configCache = new Lazy<IConfigCache>(() => (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache), LazyThreadSafetyMode.PublicationOnly);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (3)
212
_targetBuilder = (ITargetBuilder)_componentHost.
GetComponent
(BuildComponentType.TargetBuilder);
1109
var buildCheckManager = (_componentHost.
GetComponent
(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider)!.Instance;
1235
var resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (3)
133
IResultsCache resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
165
ITaskBuilder taskBuilder = _componentHost.
GetComponent
(BuildComponentType.TaskBuilder) as ITaskBuilder;
260
ITaskBuilder taskBuilder = _componentHost.
GetComponent
(BuildComponentType.TaskBuilder) as ITaskBuilder;
BackEnd\Components\RequestBuilder\TaskHost.cs (4)
619
var objectCache = (IRegisteredTaskObjectCache)_host.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache);
628
var objectCache = (IRegisteredTaskObjectCache)_host.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache);
637
var objectCache = (IRegisteredTaskObjectCache)_host.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache);
952
((IFileAccessManager)buildComponentHost.
GetComponent
(BuildComponentType.FileAccessManager)).ReportFileAccess(fileAccessData, buildComponentHost.BuildParameters.NodeId);
BackEnd\Components\Scheduler\Scheduler.cs (3)
631
_resultsCache = (IResultsCache)_componentHost.
GetComponent
(BuildComponentType.ResultsCache);
632
_configCache = (IConfigCache)_componentHost.
GetComponent
(BuildComponentType.ConfigCache);
1966
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;
324
IRegisteredTaskObjectCache objectCache = (IRegisteredTaskObjectCache)(_componentHost.
GetComponent
(BuildComponentType.RegisteredTaskObjectCache));
BackEnd\Node\OutOfProcNode.cs (4)
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;
158
_sdkResolverService = (this as IBuildComponentHost).
GetComponent
(BuildComponentType.SdkResolverService) as ISdkResolverService;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
464
ISdkResolverService sdkResolverService = componentHost.
GetComponent
(BuildComponentType.SdkResolverService) as ISdkResolverService;
Instance\TaskFactories\TaskHostTask.cs (2)
261
_taskHostProvider = (NodeProviderOutOfProcTaskHost)_buildComponentHost.
GetComponent
(BuildComponentType.OutOfProcTaskHostNodeProvider);
441
IFileAccessManager fileAccessManager = ((IFileAccessManager)_buildComponentHost.
GetComponent
(BuildComponentType.FileAccessManager));
Microsoft.Build.Engine.UnitTests (15)
BackEnd\BuildManager_Tests.cs (4)
1857
host.
GetComponent
(BuildComponentType.ConfigCache);
1883
host.
GetComponent
(BuildComponentType.ConfigCache);
1915
host.
GetComponent
(BuildComponentType.ConfigCache);
1967
host.
GetComponent
(BuildComponentType.ConfigCache);
BackEnd\LoggingService_Tests.cs (1)
966
ConfigCache configCache = host.
GetComponent
(BuildComponentType.ConfigCache) as ConfigCache;
BackEnd\Scheduler_Tests.cs (4)
68
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
95
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)_buildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
375
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
569
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
BackEnd\TargetEntry_Tests.cs (2)
835
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
892
NodeProviderInProc inProcNodeProvider = ((IBuildComponentHost)manager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
Construction\SolutionProjectGenerator_Tests.cs (4)
2050
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
2077
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)buildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
2137
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;
2164
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)buildManager).
GetComponent
(BuildComponentType.InProcNodeProvider) as NodeProviderInProc;