342 references to BuildComponentType
Microsoft.Build (162)
BackEnd\BuildManager\BuildManager.cs (24)
368
private ISdkResolverService SdkResolverService => ((this as IBuildComponentHost).GetComponent(
BuildComponentType
.SdkResolverService) as ISdkResolverService)!;
374
ILoggingService IBuildComponentHost.LoggingService => _componentFactories.GetComponent<ILoggingService>(
BuildComponentType
.LoggingService);
563
_nodeManager = ((IBuildComponentHost)this).GetComponent(
BuildComponentType
.NodeManager) as INodeManager;
594
_taskHostNodeManager = ((IBuildComponentHost)this).GetComponent<INodeManager>(
BuildComponentType
.TaskHostNodeManager);
595
_scheduler = ((IBuildComponentHost)this).GetComponent<IScheduler>(
BuildComponentType
.Scheduler);
686
_configCache = ((IBuildComponentHost)this).GetComponent<IConfigCache>(
BuildComponentType
.ConfigCache);
687
_resultsCache = ((IBuildComponentHost)this).GetComponent<IResultsCache>(
BuildComponentType
.ResultsCache);
833
_configCache = ((IBuildComponentHost)this).GetComponent<IConfigCache>(
BuildComponentType
.ConfigCache);
834
_resultsCache = ((IBuildComponentHost)this).GetComponent<IResultsCache>(
BuildComponentType
.ResultsCache);
854
_configCache = ((IBuildComponentHost)this).GetComponent(
BuildComponentType
.ConfigCache) as IConfigCache;
1165
_nodeManager ??= (INodeManager)((IBuildComponentHost)this).GetComponent(
BuildComponentType
.NodeManager);
1205
void IBuildComponentHost.RegisterFactory(
BuildComponentType
componentType, BuildComponentFactoryDelegate factory)
1215
IBuildComponent IBuildComponentHost.GetComponent(
BuildComponentType
type)
1220
TComponent IBuildComponentHost.GetComponent<TComponent>(
BuildComponentType
type)
2480
ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(
BuildComponentType
.LoggingService);
2493
ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(
BuildComponentType
.LoggingService);
2667
IConfigCache configCache = _componentFactories.GetComponent<IConfigCache>(
BuildComponentType
.ConfigCache);
2767
ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(
BuildComponentType
.LoggingService);
2918
_componentFactories.ReplaceFactory(
BuildComponentType
.LoggingService, loggingService as IBuildComponent);
2931
((IBuildComponentHost)this).GetComponent(
BuildComponentType
.BuildCheckManagerProvider) as IBuildCheckManagerProvider;
3103
_componentFactories.ShutdownComponent(
BuildComponentType
.LoggingService);
3110
_componentFactories.ReplaceFactory(
BuildComponentType
.LoggingService, (IBuildComponent?)null);
3209
_componentFactories.ReplaceFactory(
BuildComponentType
.ConfigCache, new ConfigCacheWithOverride(cacheAggregation.ConfigCache));
3210
_componentFactories.ReplaceFactory(
BuildComponentType
.ResultsCache, new ResultsCacheWithOverride(cacheAggregation.ResultsCache));
BackEnd\Components\BuildComponentFactoryCollection.cs (46)
23
private readonly Dictionary<
BuildComponentType
, BuildComponentEntry> _componentEntriesByType;
36
_componentEntriesByType = new Dictionary<
BuildComponentType
, BuildComponentEntry>();
60
_componentEntriesByType[
BuildComponentType
.Scheduler] = new BuildComponentEntry(
BuildComponentType
.Scheduler, Scheduler.CreateComponent, CreationPattern.Singleton);
61
_componentEntriesByType[
BuildComponentType
.ConfigCache] = new BuildComponentEntry(
BuildComponentType
.ConfigCache, ConfigCache.CreateComponent, CreationPattern.Singleton);
62
_componentEntriesByType[
BuildComponentType
.ResultsCache] = new BuildComponentEntry(
BuildComponentType
.ResultsCache, ResultsCache.CreateComponent, CreationPattern.Singleton);
63
_componentEntriesByType[
BuildComponentType
.NodeManager] = new BuildComponentEntry(
BuildComponentType
.NodeManager, NodeManager.CreateComponent, CreationPattern.Singleton);
64
_componentEntriesByType[
BuildComponentType
.TaskHostNodeManager] = new BuildComponentEntry(
BuildComponentType
.TaskHostNodeManager, TaskHostNodeManager.CreateComponent, CreationPattern.Singleton);
66
_componentEntriesByType[
BuildComponentType
.NodeLauncher] = new BuildComponentEntry(
BuildComponentType
.NodeLauncher, NodeLauncher.CreateComponent, CreationPattern.Singleton);
67
_componentEntriesByType[
BuildComponentType
.InProcNodeProvider] = new BuildComponentEntry(
BuildComponentType
.InProcNodeProvider, NodeProviderInProc.CreateComponent, CreationPattern.Singleton);
68
_componentEntriesByType[
BuildComponentType
.OutOfProcNodeProvider] = new BuildComponentEntry(
BuildComponentType
.OutOfProcNodeProvider, NodeProviderOutOfProc.CreateComponent, CreationPattern.Singleton);
69
_componentEntriesByType[
BuildComponentType
.OutOfProcTaskHostNodeProvider] = new BuildComponentEntry(
BuildComponentType
.OutOfProcTaskHostNodeProvider, NodeProviderOutOfProcTaskHost.CreateComponent, CreationPattern.Singleton);
74
_componentEntriesByType[
BuildComponentType
.RequestEngine] = new BuildComponentEntry(
BuildComponentType
.RequestEngine, BuildRequestEngine.CreateComponent, CreationPattern.Singleton);
78
_componentEntriesByType[
BuildComponentType
.LoggingService] = new BuildComponentEntry(
BuildComponentType
.LoggingService, null);
79
_componentEntriesByType[
BuildComponentType
.RequestBuilder] = new BuildComponentEntry(
BuildComponentType
.RequestBuilder, RequestBuilder.CreateComponent, CreationPattern.CreateAlways);
81
_componentEntriesByType[
BuildComponentType
.BuildCheckManagerProvider] = new BuildComponentEntry(
BuildComponentType
.BuildCheckManagerProvider, BuildCheckManagerProvider.CreateComponent, CreationPattern.Singleton);
82
_componentEntriesByType[
BuildComponentType
.TargetBuilder] = new BuildComponentEntry(
BuildComponentType
.TargetBuilder, TargetBuilder.CreateComponent, CreationPattern.CreateAlways);
83
_componentEntriesByType[
BuildComponentType
.TaskBuilder] = new BuildComponentEntry(
BuildComponentType
.TaskBuilder, TaskBuilder.CreateComponent, CreationPattern.CreateAlways);
84
_componentEntriesByType[
BuildComponentType
.RegisteredTaskObjectCache] = new BuildComponentEntry(
BuildComponentType
.RegisteredTaskObjectCache, RegisteredTaskObjectCache.CreateComponent, CreationPattern.Singleton);
87
_componentEntriesByType[
BuildComponentType
.SdkResolverService] = new BuildComponentEntry(
BuildComponentType
.SdkResolverService, MainNodeSdkResolverService.CreateComponent, CreationPattern.Singleton);
99
foreach (KeyValuePair<
BuildComponentType
, BuildComponentEntry> componentEntry in _componentEntriesByType)
111
public void ShutdownComponent(
BuildComponentType
componentType)
122
public void ReplaceFactory(
BuildComponentType
componentType, BuildComponentFactoryDelegate factory)
133
public void ReplaceFactory(
BuildComponentType
componentType, IBuildComponent instance)
145
public void AddFactory(
BuildComponentType
componentType, BuildComponentFactoryDelegate factory, CreationPattern creationPattern)
155
public IBuildComponent GetComponent(
BuildComponentType
type)
165
internal TComponent GetComponent<TComponent>(
BuildComponentType
type) where TComponent : IBuildComponent
188
public BuildComponentEntry(
BuildComponentType
type, BuildComponentFactoryDelegate factory, CreationPattern pattern)
198
public BuildComponentEntry(
BuildComponentType
type, IBuildComponent singleton)
208
private
BuildComponentType
ComponentType { get; }
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (14)
286
IBuildCheckManagerProvider buildCheckProvider = (_componentHost.GetComponent(
BuildComponentType
.BuildCheckManagerProvider) as IBuildCheckManagerProvider);
339
IResultsCache cache = (IResultsCache)_componentHost.GetComponent(
BuildComponentType
.ResultsCache);
342
BuildRequestConfiguration config = ((IConfigCache)_componentHost.GetComponent(
BuildComponentType
.ConfigCache))[request.ConfigurationId];
431
IResultsCache resultsCache = (IResultsCache)_componentHost.GetComponent(
BuildComponentType
.ResultsCache);
432
IConfigCache configCache = (IConfigCache)_componentHost.GetComponent(
BuildComponentType
.ConfigCache);
512
IConfigCache globalConfigurations = (IConfigCache)_componentHost.GetComponent(
BuildComponentType
.ConfigCache);
522
IResultsCache resultsCache = (IResultsCache)_componentHost.GetComponent(
BuildComponentType
.ResultsCache);
596
_configCache = (IConfigCache)host.GetComponent(
BuildComponentType
.ConfigCache);
623
internal static IBuildComponent CreateComponent(
BuildComponentType
type)
625
ErrorUtilities.VerifyThrow(type ==
BuildComponentType
.RequestEngine, "Cannot create component of type {0}", type);
878
_componentHost.GetComponent(
BuildComponentType
.ResultsCache) as IResultsCache;
944
IRequestBuilder builder = (IRequestBuilder)_componentHost.GetComponent(
BuildComponentType
.RequestBuilder);
1121
IConfigCache globalConfigCache = (IConfigCache)_componentHost.GetComponent(
BuildComponentType
.ConfigCache);
1211
IResultsCache resultsCache = (IResultsCache)_componentHost.GetComponent(
BuildComponentType
.ResultsCache);
BackEnd\Components\Caching\ConfigCache.cs (2)
389
internal static IBuildComponent CreateComponent(
BuildComponentType
componentType)
391
ErrorUtilities.VerifyThrow(componentType ==
BuildComponentType
.ConfigCache, "Cannot create components of type {0}", componentType);
BackEnd\Components\Caching\RegisteredTaskObjectCache.cs (2)
60
internal static IBuildComponent CreateComponent(
BuildComponentType
type)
62
ErrorUtilities.VerifyThrow(type ==
BuildComponentType
.RegisteredTaskObjectCache, "Cannot create components of type {0}", type);
BackEnd\Components\Caching\ResultsCache.cs (2)
300
internal static IBuildComponent CreateComponent(
BuildComponentType
componentType)
302
ErrorUtilities.VerifyThrow(componentType ==
BuildComponentType
.ResultsCache, "Cannot create components of type {0}", componentType);
BackEnd\Components\Communications\NodeLauncher.cs (2)
21
public static IBuildComponent CreateComponent(
BuildComponentType
type)
23
ErrorUtilities.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;
278
internal static IBuildComponent CreateComponent(
BuildComponentType
type)
280
ErrorUtilities.VerifyThrow(type ==
BuildComponentType
.NodeManager, "Cannot create component of type {0}", type);
BackEnd\Components\Communications\NodeProviderInProc.cs (2)
350
internal static IBuildComponent CreateComponent(
BuildComponentType
type)
352
ErrorUtilities.VerifyThrow(type ==
BuildComponentType
.InProcNodeProvider, "Cannot create component of type {0}", type);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
195
internal static IBuildComponent CreateComponent(
BuildComponentType
componentType)
197
ErrorUtilities.VerifyThrow(componentType ==
BuildComponentType
.OutOfProcNodeProvider, "Factory cannot create components of type {0}", componentType);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
335
INodeLauncher nodeLauncher = (INodeLauncher)_componentHost.GetComponent(
BuildComponentType
.NodeLauncher);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (2)
348
internal static IBuildComponent CreateComponent(
BuildComponentType
componentType)
350
ErrorUtilities.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;
167
internal static IBuildComponent CreateComponent(
BuildComponentType
type)
169
ErrorUtilities.VerifyThrow(type ==
BuildComponentType
.TaskHostNodeManager, "Cannot create component of type {0}", type);
BackEnd\Components\IBuildComponentHost.cs (4)
17
internal delegate IBuildComponent BuildComponentFactoryDelegate(
BuildComponentType
type);
189
void RegisterFactory(
BuildComponentType
factoryType, BuildComponentFactoryDelegate factory);
196
IBuildComponent GetComponent(
BuildComponentType
type);
204
TComponent GetComponent<TComponent>(
BuildComponentType
type)
BackEnd\Components\Logging\LoggingService.cs (2)
304
_configCache = new Lazy<IConfigCache>(() => (IConfigCache)_componentHost.GetComponent(
BuildComponentType
.ConfigCache), LazyThreadSafetyMode.PublicationOnly);
873
_buildEngineDataRouter = (buildComponentHost.GetComponent(
BuildComponentType
.BuildCheckManagerProvider) as IBuildCheckManagerProvider)?.BuildEngineDataRouter;
BackEnd\Components\Logging\LoggingServiceFactory.cs (2)
49
public IBuildComponent CreateInstance(
BuildComponentType
type)
51
ErrorUtilities.VerifyThrow(type ==
BuildComponentType
.LoggingService, "Cannot create components of type {0}", type);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (5)
213
_targetBuilder = (ITargetBuilder)_componentHost.GetComponent(
BuildComponentType
.TargetBuilder);
628
internal static IBuildComponent CreateComponent(
BuildComponentType
type)
630
ErrorUtilities.VerifyThrow(type ==
BuildComponentType
.RequestBuilder, "Cannot create components of type {0}", type);
1113
: (_componentHost.GetComponent(
BuildComponentType
.BuildCheckManagerProvider) as IBuildCheckManagerProvider)!.Instance;
1234
var resultsCache = (IResultsCache)_componentHost.GetComponent(
BuildComponentType
.ResultsCache);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (5)
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;
392
internal static IBuildComponent CreateComponent(
BuildComponentType
type)
394
ErrorUtilities.VerifyThrow(type ==
BuildComponentType
.TargetBuilder, "Cannot create components of type {0}", type);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
226
internal static IBuildComponent CreateComponent(
BuildComponentType
type)
228
ErrorUtilities.VerifyThrow(type ==
BuildComponentType
.TaskBuilder, "Cannot create components of type {0}", type);
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
619
var objectCache = (IRegisteredTaskObjectCache)_host.GetComponent(
BuildComponentType
.RegisteredTaskObjectCache);
628
var objectCache = (IRegisteredTaskObjectCache)_host.GetComponent(
BuildComponentType
.RegisteredTaskObjectCache);
637
var objectCache = (IRegisteredTaskObjectCache)_host.GetComponent(
BuildComponentType
.RegisteredTaskObjectCache);
BackEnd\Components\Scheduler\Scheduler.cs (5)
631
_resultsCache = (IResultsCache)_componentHost.GetComponent(
BuildComponentType
.ResultsCache);
632
_configCache = (IConfigCache)_componentHost.GetComponent(
BuildComponentType
.ConfigCache);
649
internal static IBuildComponent CreateComponent(
BuildComponentType
componentType)
651
ErrorUtilities.VerifyThrow(componentType ==
BuildComponentType
.Scheduler, "Cannot create components of type {0}", componentType);
1966
var configCache = (IConfigCache)_componentHost.GetComponent(
BuildComponentType
.ConfigCache);
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"/>.
34
public static IBuildComponent CreateComponent(
BuildComponentType
type)
36
ErrorUtilities.VerifyThrowArgumentOutOfRange(type ==
BuildComponentType
.SdkResolverService, nameof(type));
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\Components\SdkResolution\OutOfProcNodeSdkResolverServiceFactory.cs (1)
26
public IBuildComponent CreateInstance(
BuildComponentType
type)
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 (13)
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;
157
((IBuildComponentHost)this).RegisterFactory(
BuildComponentType
.SdkResolverService, sdkResolverServiceFactory.CreateInstance);
158
_sdkResolverService = (this as IBuildComponentHost).GetComponent(
BuildComponentType
.SdkResolverService) as ISdkResolverService;
291
void IBuildComponentHost.RegisterFactory(
BuildComponentType
factoryType, BuildComponentFactoryDelegate factory)
301
IBuildComponent IBuildComponentHost.GetComponent(
BuildComponentType
type)
306
TComponent IBuildComponentHost.GetComponent<TComponent>(
BuildComponentType
type)
462
IRegisteredTaskObjectCache objectCache = (IRegisteredTaskObjectCache)(_componentFactories.GetComponent(
BuildComponentType
.RegisteredTaskObjectCache));
536
if (_componentFactories.GetComponent(
BuildComponentType
.ConfigCache) is IConfigCache configCache)
541
if (_componentFactories.GetComponent(
BuildComponentType
.ResultsCache) is IResultsCache resultsCache)
759
_componentFactories.ReplaceFactory(
BuildComponentType
.LoggingService, loggingServiceFactory.CreateInstance);
761
_loggingService = _componentFactories.GetComponent(
BuildComponentType
.LoggingService) as ILoggingService;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
464
ISdkResolverService sdkResolverService = componentHost.GetComponent(
BuildComponentType
.SdkResolverService) as ISdkResolverService;
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
34
internal static IBuildComponent CreateComponent(
BuildComponentType
type)
36
ErrorUtilities.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)
261
_taskHostProvider = (NodeProviderOutOfProcTaskHost)_buildComponentHost.GetComponent(
BuildComponentType
.OutOfProcTaskHostNodeProvider);
Microsoft.Build.Engine.UnitTests (180)
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\BuildRequestEngine_Tests.cs (5)
294
_engine = (IBuildRequestEngine)_host.GetComponent(
BuildComponentType
.RequestEngine);
295
_cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
401
MockRequestBuilder builder = (MockRequestBuilder)_host.GetComponent(
BuildComponentType
.RequestBuilder);
454
MockRequestBuilder builder = (MockRequestBuilder)_host.GetComponent(
BuildComponentType
.RequestBuilder);
520
IBuildRequestEngine engine = (IBuildRequestEngine)_host.GetComponent(
BuildComponentType
.RequestEngine);
BackEnd\LoggingService_Tests.cs (1)
966
ConfigCache configCache = host.GetComponent(
BuildComponentType
.ConfigCache) as ConfigCache;
BackEnd\LoggingServiceFactory_Tests.cs (2)
24
LoggingService loggingService = (LoggingService)factory.CreateInstance(
BuildComponentType
.LoggingService);
35
LoggingService loggingService = (LoggingService)factory.CreateInstance(
BuildComponentType
.LoggingService);
BackEnd\LoggingServicesLogMethod_Tests.cs (5)
839
ConfigCache cache = (ConfigCache)componentHost.GetComponent(
BuildComponentType
.ConfigCache);
865
ConfigCache cache = (ConfigCache)componentHost.GetComponent(
BuildComponentType
.ConfigCache);
904
ConfigCache cache = (ConfigCache)componentHost.GetComponent(
BuildComponentType
.ConfigCache);
945
ConfigCache cache = (ConfigCache)componentHost.GetComponent(
BuildComponentType
.ConfigCache);
1418
ConfigCache cache = (ConfigCache)componentHost.GetComponent(
BuildComponentType
.ConfigCache);
BackEnd\MockHost.cs (11)
192
public IBuildComponent GetComponent(
BuildComponentType
type)
196
BuildComponentType
.ConfigCache => (IBuildComponent)_configCache,
197
BuildComponentType
.LoggingService => (IBuildComponent)_loggingService,
198
BuildComponentType
.RequestEngine => (IBuildComponent)_requestEngine,
199
BuildComponentType
.TargetBuilder => (IBuildComponent)_targetBuilder,
200
BuildComponentType
.ResultsCache => (IBuildComponent)_resultsCache,
201
BuildComponentType
.RequestBuilder => (IBuildComponent)_requestBuilder,
202
BuildComponentType
.SdkResolverService => (IBuildComponent)_sdkResolverService,
203
BuildComponentType
.BuildCheckManagerProvider => (IBuildComponent)_buildCheckManagerProvider,
208
public TComponent GetComponent<TComponent>(
BuildComponentType
type) where TComponent : IBuildComponent
214
public void RegisterFactory(
BuildComponentType
type, BuildComponentFactoryDelegate factory)
BackEnd\NodeEndpointInProc_Tests.cs (3)
79
public IBuildComponent GetComponent(
BuildComponentType
type)
84
public TComponent GetComponent<TComponent>(
BuildComponentType
type) where TComponent : IBuildComponent => throw new NotImplementedException("Not expected to be used.");
86
public void RegisterFactory(
BuildComponentType
type, BuildComponentFactoryDelegate factory)
BackEnd\RequestBuilder_Tests.cs (12)
61
_requestBuilder = (IRequestBuilder)_host.GetComponent(
BuildComponentType
.RequestBuilder);
83
TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
84
IConfigCache configCache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
113
TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
114
IConfigCache configCache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
146
TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
147
IConfigCache configCache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
185
TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
186
IConfigCache configCache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
224
TestTargetBuilder targetBuilder = (TestTargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
225
IConfigCache configCache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
300
IConfigCache configCache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
BackEnd\Scheduler_Tests.cs (7)
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;
613
Assert.Null(((ResultsCacheWithOverride)_host.GetComponent(
BuildComponentType
.ResultsCache)).CurrentCache.GetResultsForConfiguration(1));
738
(_host.GetComponent(
BuildComponentType
.ConfigCache) as IConfigCache).AddConfiguration(config);
761
(_host.GetComponent(
BuildComponentType
.ResultsCache) as IResultsCache).AddResult(result);
BackEnd\SdkResultOutOfProc_Tests.cs (1)
273
((IBuildComponentHost)_buildManager).RegisterFactory(
BuildComponentType
.SdkResolverService, type =>
BackEnd\TargetBuilder_Tests.cs (90)
102
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
103
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
122
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
123
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
135
IResultsCache resultsCache = (IResultsCache)_host.GetComponent(
BuildComponentType
.ResultsCache);
149
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
150
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
158
IResultsCache resultsCache = (IResultsCache)_host.GetComponent(
BuildComponentType
.ResultsCache);
175
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
176
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
179
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
191
IResultsCache resultsCache = (IResultsCache)_host.GetComponent(
BuildComponentType
.ResultsCache);
363
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
364
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
503
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
504
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
529
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
530
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
555
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
556
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
580
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
585
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
586
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
615
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
620
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
621
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
652
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
653
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
683
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
684
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
709
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
710
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
745
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
746
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
771
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
772
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
798
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
799
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
823
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
828
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
829
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
867
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
872
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
873
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
899
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
900
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
926
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
927
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
958
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
959
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1056
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
1057
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1091
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
1092
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1142
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
1143
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1202
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
1203
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1239
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
1244
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
1245
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1290
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
1291
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1321
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
1322
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1395
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
1396
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1424
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
1425
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
1429
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1435
IResultsCache resultsCache = (IResultsCache)_host.GetComponent(
BuildComponentType
.ResultsCache);
1452
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
1453
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
1456
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1461
IResultsCache resultsCache = (IResultsCache)_host.GetComponent(
BuildComponentType
.ResultsCache);
1545
MockTaskBuilder mockBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
1675
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1707
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
1710
TargetBuilder builder = (TargetBuilder)_host.GetComponent(
BuildComponentType
.TargetBuilder);
1711
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1845
public IBuildComponent GetComponent(
BuildComponentType
type)
1849
BuildComponentType
.ConfigCache => (IBuildComponent)_configCache,
1850
BuildComponentType
.LoggingService => (IBuildComponent)_loggingService,
1851
BuildComponentType
.ResultsCache => (IBuildComponent)_resultsCache,
1852
BuildComponentType
.RequestBuilder => (IBuildComponent)_requestBuilder,
1853
BuildComponentType
.TaskBuilder => (IBuildComponent)_taskBuilder,
1854
BuildComponentType
.TargetBuilder => (IBuildComponent)_targetBuilder,
1855
BuildComponentType
.SdkResolverService => (IBuildComponent)_sdkResolverService,
1860
public TComponent GetComponent<TComponent>(
BuildComponentType
type) where TComponent : IBuildComponent
1866
public void RegisterFactory(
BuildComponentType
type, BuildComponentFactoryDelegate factory)
BackEnd\TargetEntry_Tests.cs (24)
209
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
254
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
322
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
354
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
463
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
490
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
508
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
529
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
550
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
571
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
592
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
613
MockTaskBuilder taskBuilder = (MockTaskBuilder)_host.GetComponent(
BuildComponentType
.TaskBuilder);
835
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(
BuildComponentType
.InProcNodeProvider) as NodeProviderInProc;
894
NodeProviderInProc inProcNodeProvider = ((IBuildComponentHost)manager).GetComponent(
BuildComponentType
.InProcNodeProvider) as NodeProviderInProc;
1003
ITaskBuilder taskBuilder = _host.GetComponent(
BuildComponentType
.TaskBuilder) as ITaskBuilder;
1316
public IBuildComponent GetComponent(
BuildComponentType
type)
1320
BuildComponentType
.ConfigCache => (IBuildComponent)_configCache,
1321
BuildComponentType
.LoggingService => (IBuildComponent)_loggingService,
1322
BuildComponentType
.ResultsCache => (IBuildComponent)_resultsCache,
1323
BuildComponentType
.RequestBuilder => (IBuildComponent)_requestBuilder,
1324
BuildComponentType
.TaskBuilder => (IBuildComponent)_taskBuilder,
1325
BuildComponentType
.SdkResolverService => (IBuildComponent)_sdkResolverService,
1330
public TComponent GetComponent<TComponent>(
BuildComponentType
type) where TComponent : IBuildComponent
1336
public void RegisterFactory(
BuildComponentType
type, BuildComponentFactoryDelegate factory)
BackEnd\TaskBuilder_Tests.cs (10)
1241
IConfigCache cache = (IConfigCache)_host.GetComponent(
BuildComponentType
.ConfigCache);
1373
public IBuildComponent GetComponent(
BuildComponentType
type)
1377
BuildComponentType
.ConfigCache => (IBuildComponent)_configCache,
1378
BuildComponentType
.LoggingService => (IBuildComponent)_loggingService,
1379
BuildComponentType
.ResultsCache => (IBuildComponent)_resultsCache,
1380
BuildComponentType
.RequestBuilder => (IBuildComponent)_requestBuilder,
1381
BuildComponentType
.TargetBuilder => (IBuildComponent)_targetBuilder,
1382
BuildComponentType
.SdkResolverService => (IBuildComponent)_sdkResolverService,
1387
public TComponent GetComponent<TComponent>(
BuildComponentType
type) where TComponent : IBuildComponent
1393
public void RegisterFactory(
BuildComponentType
type, BuildComponentFactoryDelegate factory)
BackEnd\TaskHost_Tests.cs (1)
66
_loggingService = loggingFactory.CreateInstance(
BuildComponentType
.LoggingService) as LoggingService;
Construction\SolutionProjectGenerator_Tests.cs (4)
2115
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(
BuildComponentType
.InProcNodeProvider) as NodeProviderInProc;
2142
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)buildManager).GetComponent(
BuildComponentType
.InProcNodeProvider) as NodeProviderInProc;
2203
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)BuildManager.DefaultBuildManager).GetComponent(
BuildComponentType
.InProcNodeProvider) as NodeProviderInProc;
2230
NodeProviderInProc nodeProviderInProc = ((IBuildComponentHost)buildManager).GetComponent(
BuildComponentType
.InProcNodeProvider) as NodeProviderInProc;