1 write to _componentEntriesByType
Microsoft.Build (1)
BackEnd\Components\BuildComponentFactoryCollection.cs (1)
39
_componentEntriesByType
= new Dictionary<BuildComponentType, BuildComponentEntry>();
27 references to _componentEntriesByType
Microsoft.Build (27)
BackEnd\Components\BuildComponentFactoryCollection.cs (27)
63
_componentEntriesByType
[BuildComponentType.Scheduler] = new BuildComponentEntry(BuildComponentType.Scheduler, Scheduler.CreateComponent, CreationPattern.Singleton);
64
_componentEntriesByType
[BuildComponentType.ConfigCache] = new BuildComponentEntry(BuildComponentType.ConfigCache, ConfigCache.CreateComponent, CreationPattern.Singleton);
65
_componentEntriesByType
[BuildComponentType.ResultsCache] = new BuildComponentEntry(BuildComponentType.ResultsCache, ResultsCache.CreateComponent, CreationPattern.Singleton);
66
_componentEntriesByType
[BuildComponentType.NodeManager] = new BuildComponentEntry(BuildComponentType.NodeManager, NodeManager.CreateComponent, CreationPattern.Singleton);
67
_componentEntriesByType
[BuildComponentType.TaskHostNodeManager] = new BuildComponentEntry(BuildComponentType.TaskHostNodeManager, TaskHostNodeManager.CreateComponent, CreationPattern.Singleton);
69
_componentEntriesByType
[BuildComponentType.NodeLauncher] = new BuildComponentEntry(BuildComponentType.NodeLauncher, NodeLauncher.CreateComponent, CreationPattern.Singleton);
70
_componentEntriesByType
[BuildComponentType.InProcNodeProvider] = new BuildComponentEntry(BuildComponentType.InProcNodeProvider, NodeProviderInProc.CreateComponent, CreationPattern.Singleton);
71
_componentEntriesByType
[BuildComponentType.OutOfProcNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcNodeProvider, NodeProviderOutOfProc.CreateComponent, CreationPattern.Singleton);
72
_componentEntriesByType
[BuildComponentType.OutOfProcTaskHostNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcTaskHostNodeProvider, NodeProviderOutOfProcTaskHost.CreateComponent, CreationPattern.Singleton);
77
_componentEntriesByType
[BuildComponentType.RequestEngine] = new BuildComponentEntry(BuildComponentType.RequestEngine, BuildRequestEngine.CreateComponent, CreationPattern.Singleton);
81
_componentEntriesByType
[BuildComponentType.LoggingService] = new BuildComponentEntry(BuildComponentType.LoggingService, null);
82
_componentEntriesByType
[BuildComponentType.RequestBuilder] = new BuildComponentEntry(BuildComponentType.RequestBuilder, RequestBuilder.CreateComponent, CreationPattern.CreateAlways);
84
_componentEntriesByType
[BuildComponentType.BuildCheckManagerProvider] = new BuildComponentEntry(BuildComponentType.BuildCheckManagerProvider, BuildCheckManagerProvider.CreateComponent, CreationPattern.Singleton);
85
_componentEntriesByType
[BuildComponentType.TelemetryForwarder] = new BuildComponentEntry(BuildComponentType.TelemetryForwarder, TelemetryForwarderProvider.CreateComponent, CreationPattern.Singleton);
86
_componentEntriesByType
[BuildComponentType.TargetBuilder] = new BuildComponentEntry(BuildComponentType.TargetBuilder, TargetBuilder.CreateComponent, CreationPattern.CreateAlways);
87
_componentEntriesByType
[BuildComponentType.TaskBuilder] = new BuildComponentEntry(BuildComponentType.TaskBuilder, TaskBuilder.CreateComponent, CreationPattern.CreateAlways);
88
_componentEntriesByType
[BuildComponentType.RegisteredTaskObjectCache] = new BuildComponentEntry(BuildComponentType.RegisteredTaskObjectCache, RegisteredTaskObjectCache.CreateComponent, CreationPattern.Singleton);
91
_componentEntriesByType
[BuildComponentType.SdkResolverService] = new BuildComponentEntry(BuildComponentType.SdkResolverService, MainNodeSdkResolverService.CreateComponent, CreationPattern.Singleton);
94
_componentEntriesByType
[BuildComponentType.FileAccessManager] = new BuildComponentEntry(BuildComponentType.FileAccessManager, FileAccessManager.CreateComponent, CreationPattern.Singleton);
103
foreach (KeyValuePair<BuildComponentType, BuildComponentEntry> componentEntry in
_componentEntriesByType
)
117
BuildComponentEntry existingEntry =
_componentEntriesByType
[componentType];
128
BuildComponentEntry existingEntry =
_componentEntriesByType
[componentType];
129
_componentEntriesByType
[componentType] = new BuildComponentEntry(componentType, factory, existingEntry.Pattern);
139
ErrorUtilities.VerifyThrow(
_componentEntriesByType
[componentType].Pattern == CreationPattern.Singleton, "Previously existing factory for type {0} was not a singleton factory.", componentType);
140
_componentEntriesByType
[componentType] = new BuildComponentEntry(componentType, instance);
151
_componentEntriesByType
[componentType] = new BuildComponentEntry(componentType, factory, creationPattern);
161
if (!
_componentEntriesByType
.TryGetValue(type, out BuildComponentEntry componentEntry))