7 interfaces inheriting from IBuildComponent
Microsoft.Build (7)
BackEnd\Components\Caching\IConfigCache.cs (1)
18internal interface IConfigCache : IBuildComponent, IEnumerable<BuildRequestConfiguration>, ITranslatable
BackEnd\Components\Caching\IResultsCache.cs (1)
15internal interface IResultsCache : IBuildComponent, ITranslatable, IEnumerable<BuildResult>
BackEnd\Components\Communications\INodeManager.cs (1)
14internal interface INodeManager : IBuildComponent,
BackEnd\Components\Communications\INodeProvider.cs (1)
36internal interface INodeProvider : IBuildComponent
BackEnd\Components\Logging\ILoggingService.cs (1)
31internal interface ILoggingService : IBuildComponent, IBuildEngineDataRouter
BackEnd\Components\Scheduler\IScheduler.cs (1)
15internal interface IScheduler : IBuildComponent
BuildCheck\Infrastructure\IBuildCheckManagerProvider.cs (1)
8internal interface IBuildCheckManagerProvider : IBuildComponent
17 implementations of IBuildComponent
Microsoft.Build (9)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
36internal class BuildRequestEngine : IBuildRequestEngine, IBuildComponent
BackEnd\Components\Caching\RegisteredTaskObjectCache.cs (1)
15internal class RegisteredTaskObjectCache : RegisteredTaskObjectCacheBase, IBuildComponent, IRegisteredTaskObjectCache, IDisposable
BackEnd\Components\Communications\NodeLauncher.cs (1)
19internal sealed class NodeLauncher : INodeLauncher, IBuildComponent
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
24internal partial class LoggingService : ILoggingService, INodePacketHandler, IBuildComponent
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
34internal class RequestBuilder : IRequestBuilder, IRequestBuilderCallback, IBuildComponent
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
40internal class TargetBuilder : ITargetBuilder, ITargetBuilderCallback, IBuildComponent
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
63internal class TaskBuilder : ITaskBuilder, IBuildComponent
BackEnd\Components\SdkResolution\HostedSdkResolverServiceBase.cs (1)
17internal abstract class HostedSdkResolverServiceBase : IBuildComponent, INodePacketHandler, ISdkResolverService
Definition\ProjectCollection.cs (1)
83public class ProjectCollection : IToolsetProvider, IBuildComponent, IDisposable
Microsoft.Build.Engine.UnitTests (8)
BackEnd\BuildRequestEngine_Tests.cs (1)
26internal sealed class MockRequestBuilder : IRequestBuilder, IBuildComponent
BackEnd\MockHost.cs (1)
21internal sealed class MockHost : MockLoggingService, IBuildComponentHost, IBuildComponent
BackEnd\MockSdkResolverService.cs (1)
15internal sealed class MockSdkResolverService : IBuildComponent, ISdkResolverService
BackEnd\MockTaskBuilder.cs (1)
20internal sealed class MockTaskBuilder : ITaskBuilder, IBuildComponent
BackEnd\RequestBuilder_Tests.cs (1)
340internal sealed class TestTargetBuilder : ITargetBuilder, IBuildComponent
BackEnd\TargetBuilder_Tests.cs (1)
1720private sealed class MockHost : MockLoggingService, IBuildComponentHost, IBuildComponent
BackEnd\TargetEntry_Tests.cs (1)
1199private sealed class MockHost : MockLoggingService, IBuildComponentHost, IBuildComponent
BackEnd\TaskBuilder_Tests.cs (1)
1254private sealed class MockHost : MockLoggingService, IBuildComponentHost, IBuildComponent
130 references to IBuildComponent
Microsoft.Build (53)
BackEnd\BuildManager\BuildManager.cs (4)
1215IBuildComponent IBuildComponentHost.GetComponent(BuildComponentType type) 2917((IBuildComponent)loggingService).InitializeComponent(this); 2918_componentFactories.ReplaceFactory(BuildComponentType.LoggingService, loggingService as IBuildComponent); 3110_componentFactories.ReplaceFactory(BuildComponentType.LoggingService, (IBuildComponent?)null);
BackEnd\Components\BuildComponentFactoryCollection.cs (7)
133public void ReplaceFactory(BuildComponentType componentType, IBuildComponent instance) 155public IBuildComponent GetComponent(BuildComponentType type) 165internal TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent 183private IBuildComponent _singleton; 198public BuildComponentEntry(BuildComponentType type, IBuildComponent singleton) 218public IBuildComponent GetInstance(IBuildComponentHost host) 231IBuildComponent component = _factory(ComponentType);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
623internal static IBuildComponent CreateComponent(BuildComponentType type) 808((IBuildComponent)completedEntry.Builder).ShutdownComponent();
BackEnd\Components\Caching\ConfigCache.cs (1)
389internal static IBuildComponent CreateComponent(BuildComponentType componentType)
BackEnd\Components\Caching\RegisteredTaskObjectCache.cs (1)
60internal static IBuildComponent CreateComponent(BuildComponentType type)
BackEnd\Components\Caching\ResultsCache.cs (1)
300internal static IBuildComponent CreateComponent(BuildComponentType componentType)
BackEnd\Components\Communications\NodeLauncher.cs (1)
21public static IBuildComponent CreateComponent(BuildComponentType type)
BackEnd\Components\Communications\NodeManager.cs (1)
278internal static IBuildComponent CreateComponent(BuildComponentType type)
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
350internal static IBuildComponent CreateComponent(BuildComponentType type)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
195internal static IBuildComponent CreateComponent(BuildComponentType componentType)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
348internal static IBuildComponent CreateComponent(BuildComponentType componentType)
BackEnd\Components\Communications\TaskHostNodeManager.cs (1)
167internal static IBuildComponent CreateComponent(BuildComponentType type)
BackEnd\Components\IBuildComponentHost.cs (3)
17internal delegate IBuildComponent BuildComponentFactoryDelegate(BuildComponentType type); 196IBuildComponent GetComponent(BuildComponentType type); 205where TComponent : IBuildComponent;
BackEnd\Components\Logging\LoggingServiceFactory.cs (3)
49public IBuildComponent CreateInstance(BuildComponentType type) 52IBuildComponent loggingService = (IBuildComponent)LoggingService.CreateLoggingService(_logMode, _nodeId);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
628internal static IBuildComponent CreateComponent(BuildComponentType type) 900((IBuildComponent)_targetBuilder).ShutdownComponent();
BackEnd\Components\RequestBuilder\TargetBuilder.cs (3)
178((IBuildComponent)taskBuilder).ShutdownComponent(); 310((IBuildComponent)taskBuilder).ShutdownComponent(); 392internal static IBuildComponent CreateComponent(BuildComponentType type)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
226internal static IBuildComponent CreateComponent(BuildComponentType type)
BackEnd\Components\Scheduler\Scheduler.cs (1)
649internal static IBuildComponent CreateComponent(BuildComponentType componentType)
BackEnd\Components\SdkResolution\HostedSdkResolverServiceBase.cs (3)
20/// An event to signal for waiting threads when the <see cref="IBuildComponent"/> is being shut down. 41/// <inheritdoc cref="IBuildComponent.InitializeComponent"/> 54/// <inheritdoc cref="IBuildComponent.ShutdownComponent"/>
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (2)
24/// Since this object is a registered <see cref="IBuildComponent"/>, it is a singleton for the main process. To get an instance of it, you 34public static IBuildComponent CreateComponent(BuildComponentType type)
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (2)
24/// Since this object is a registered <see cref="IBuildComponent"/>, it is a singleton for the main process. To get an instance of it, you 96/// <inheritdoc cref="IBuildComponent.ShutdownComponent"/>
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverServiceFactory.cs (1)
26public IBuildComponent CreateInstance(BuildComponentType type)
BackEnd\Node\InProcNode.cs (1)
330((IBuildComponent)objectCache).ShutdownComponent();
BackEnd\Node\OutOfProcNode.cs (5)
301IBuildComponent IBuildComponentHost.GetComponent(BuildComponentType type) 454((IBuildComponent)_buildRequestEngine).ShutdownComponent(); 459((IBuildComponent)_sdkResolverService).ShutdownComponent(); 468((IBuildComponent)objectCache).ShutdownComponent(); 498((IBuildComponent)_loggingService).ShutdownComponent();
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
34internal static IBuildComponent CreateComponent(BuildComponentType type)
Definition\ProjectCollection.cs (3)
1510void IBuildComponent.InitializeComponent(IBuildComponentHost host) 1517void IBuildComponent.ShutdownComponent() 1738((IBuildComponent)LoggingService).ShutdownComponent();
Microsoft.Build.Engine.UnitTests (77)
BackEnd\BuildRequestEngine_Tests.cs (1)
307((IBuildComponent)_engine).ShutdownComponent();
BackEnd\LoggingService_Tests.cs (13)
64IBuildComponent logServiceComponent = (IBuildComponent)LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1); 73logServiceComponent = (IBuildComponent)LoggingService.CreateLoggingService(LoggerMode.Asynchronous, 1); 91IBuildComponent logServiceComponent = (IBuildComponent)LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1); 119IBuildComponent logServiceComponent = (IBuildComponent)LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1); 974((IBuildComponent)loggingService).InitializeComponent(host); 1004((IBuildComponent)loggingService).ShutdownComponent(); 1048((IBuildComponent)node1LoggingService).InitializeComponent(mockHost); 1050((IBuildComponent)node2LoggingService).InitializeComponent(mockHost); 1092IBuildComponent logServiceComponent = (IBuildComponent)LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1);
BackEnd\LoggingServicesLogMethod_Tests.cs (2)
1837public static new IBuildComponent CreateLoggingService(LoggerMode mode, int nodeId) 1847public static IBuildComponent CreateLoggingService(LoggerMode mode, int nodeId, IBuildComponentHost componentHost)
BackEnd\MockHost.cs (15)
120((IBuildComponent)_requestEngine).InitializeComponent(this); 125((IBuildComponent)_requestBuilder).InitializeComponent(this); 128((IBuildComponent)_targetBuilder).InitializeComponent(this); 131((IBuildComponent)_sdkResolverService).InitializeComponent(this); 134((IBuildComponent)_buildCheckManagerProvider).InitializeComponent(this); 192public IBuildComponent GetComponent(BuildComponentType type) 196BuildComponentType.ConfigCache => (IBuildComponent)_configCache, 197BuildComponentType.LoggingService => (IBuildComponent)_loggingService, 198BuildComponentType.RequestEngine => (IBuildComponent)_requestEngine, 199BuildComponentType.TargetBuilder => (IBuildComponent)_targetBuilder, 200BuildComponentType.ResultsCache => (IBuildComponent)_resultsCache, 201BuildComponentType.RequestBuilder => (IBuildComponent)_requestBuilder, 202BuildComponentType.SdkResolverService => (IBuildComponent)_sdkResolverService, 203BuildComponentType.BuildCheckManagerProvider => (IBuildComponent)_buildCheckManagerProvider, 208public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent
BackEnd\NodeEndpointInProc_Tests.cs (2)
79public IBuildComponent GetComponent(BuildComponentType type) 84public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent => throw new NotImplementedException("Not expected to be used.");
BackEnd\RequestBuilder_Tests.cs (2)
54((IBuildComponent)_host.RequestBuilder).InitializeComponent(_host); 68((IBuildComponent)_requestBuilder).ShutdownComponent();
BackEnd\TargetBuilder_Tests.cs (15)
1775((IBuildComponent)_configCache).InitializeComponent(this); 1780((IBuildComponent)_resultsCache).InitializeComponent(this); 1783((IBuildComponent)_requestBuilder).InitializeComponent(this); 1786((IBuildComponent)_taskBuilder).InitializeComponent(this); 1789((IBuildComponent)_targetBuilder).InitializeComponent(this); 1792((IBuildComponent)_sdkResolverService).InitializeComponent(this); 1845public IBuildComponent GetComponent(BuildComponentType type) 1849BuildComponentType.ConfigCache => (IBuildComponent)_configCache, 1850BuildComponentType.LoggingService => (IBuildComponent)_loggingService, 1851BuildComponentType.ResultsCache => (IBuildComponent)_resultsCache, 1852BuildComponentType.RequestBuilder => (IBuildComponent)_requestBuilder, 1853BuildComponentType.TaskBuilder => (IBuildComponent)_taskBuilder, 1854BuildComponentType.TargetBuilder => (IBuildComponent)_targetBuilder, 1855BuildComponentType.SdkResolverService => (IBuildComponent)_sdkResolverService, 1860public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent
BackEnd\TargetEntry_Tests.cs (14)
1007((IBuildComponent)taskBuilder).ShutdownComponent(); 1249((IBuildComponent)_configCache).InitializeComponent(this); 1254((IBuildComponent)_resultsCache).InitializeComponent(this); 1257((IBuildComponent)_requestBuilder).InitializeComponent(this); 1260((IBuildComponent)_taskBuilder).InitializeComponent(this); 1263((IBuildComponent)_sdkResolverService).InitializeComponent(this); 1316public IBuildComponent GetComponent(BuildComponentType type) 1320BuildComponentType.ConfigCache => (IBuildComponent)_configCache, 1321BuildComponentType.LoggingService => (IBuildComponent)_loggingService, 1322BuildComponentType.ResultsCache => (IBuildComponent)_resultsCache, 1323BuildComponentType.RequestBuilder => (IBuildComponent)_requestBuilder, 1324BuildComponentType.TaskBuilder => (IBuildComponent)_taskBuilder, 1325BuildComponentType.SdkResolverService => (IBuildComponent)_sdkResolverService, 1330public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent
BackEnd\TaskBuilder_Tests.cs (13)
1307((IBuildComponent)_configCache).InitializeComponent(this); 1312((IBuildComponent)_resultsCache).InitializeComponent(this); 1315((IBuildComponent)_requestBuilder).InitializeComponent(this); 1318((IBuildComponent)_targetBuilder).InitializeComponent(this); 1321((IBuildComponent)_sdkResolverService).InitializeComponent(this); 1373public IBuildComponent GetComponent(BuildComponentType type) 1377BuildComponentType.ConfigCache => (IBuildComponent)_configCache, 1378BuildComponentType.LoggingService => (IBuildComponent)_loggingService, 1379BuildComponentType.ResultsCache => (IBuildComponent)_resultsCache, 1380BuildComponentType.RequestBuilder => (IBuildComponent)_requestBuilder, 1381BuildComponentType.TargetBuilder => (IBuildComponent)_targetBuilder, 1382BuildComponentType.SdkResolverService => (IBuildComponent)_sdkResolverService, 1387public TComponent GetComponent<TComponent>(BuildComponentType type) where TComponent : IBuildComponent