13 instantiations of TaskHostParameters
Microsoft.Build (9)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
563return new TaskHostParameters(msbuildRuntime, msbuildArchitecture);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
2152TaskHostParameters taskHostParameters = new(XMakeAttributes.GetCurrentMSBuildRuntime(), XMakeAttributes.GetCurrentMSBuildArchitecture());
Evaluation\IntrinsicFunctions.cs (1)
505TaskHostParameters parameters = new(runtime, architecture);
Instance\TaskFactories\AssemblyTaskFactory.cs (5)
438return new TaskHostParameters( 593: new TaskHostParameters(normalizedRuntime, normalizedArch); 603: new TaskHostParameters(normalizedRuntime, normalizedArch); 616return new TaskHostParameters( 656return new TaskHostParameters(
Instance\TaskRegistry.cs (1)
429taskFactoryParameters = new TaskHostParameters(
Microsoft.Build.Framework (4)
BinaryTranslator.cs (1)
209value = new TaskHostParameters(
TaskHostParameters.cs (3)
17public static readonly TaskHostParameters Empty = new(); 131return new TaskHostParameters( 150return new TaskHostParameters(
87 references to TaskHostParameters
Microsoft.Build (71)
BackEnd\Client\MSBuildClient.cs (1)
641taskHostParameters: TaskHostParameters.Empty,
BackEnd\Components\Communications\NodeEndpointOutOfProc.cs (1)
39taskHostParameters: TaskHostParameters.Empty,
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
73return new Handshake(CommunicationsUtilities.GetHandshakeOptions(taskHost: false, taskHostParameters: TaskHostParameters.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: enableNodeReuse, lowPriority: enableLowPriority)); 91Handshake hostHandshake = new(CommunicationsUtilities.GetHandshakeOptions(taskHost: false, taskHostParameters: TaskHostParameters.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: ComponentHost.BuildParameters.EnableNodeReuse, lowPriority: ComponentHost.BuildParameters.LowPriority));
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (5)
513internal static (string RuntimeHostPath, string MSBuildPath) GetMSBuildLocationForNETRuntime(HandshakeOptions hostContext, TaskHostParameters taskHostParameters) 520private static string GetMSBuildPath(in TaskHostParameters taskHostParameters) 632in TaskHostParameters taskHostParameters, 712internal bool CreateNode(TaskHostNodeKey nodeKey, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration, in TaskHostParameters taskHostParameters) 745NodeLaunchData ResolveNodeLaunchConfiguration(HandshakeOptions hostContext, in TaskHostParameters taskHostParameters)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (4)
445TaskHostParameters taskIdentityParameters = GatherTaskIdentityParameters(bucket.Expander); 549private TaskHostParameters GatherTaskIdentityParameters(Expander<ProjectPropertyInstance, ProjectItemInstance> expander) 566return TaskHostParameters.Empty; 673private async Task<WorkUnitResult> InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, TaskHostParameters taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask)
BackEnd\Node\OutOfProcServerNode.cs (1)
111CommunicationsUtilities.GetHandshakeOptions(taskHost: false, taskHostParameters: TaskHostParameters.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture()));
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (11)
313public (TaskRequirements? requirements, TaskFactoryWrapper taskFactoryWrapper) FindTask(in TaskHostParameters taskIdentityParameters) 399taskFactoryWrapper = new TaskFactoryWrapper(_registeredTaskFactory, loadedType, _taskName, TaskHostParameters.Empty); 447TaskHostParameters.Empty); 453public bool InitializeForBatch(TaskLoggingContext loggingContext, ItemBucket batchBucket, in TaskHostParameters taskIdentityParameters, int scheduledNodeId) 1205private TaskFactoryWrapper FindTaskInRegistry(in TaskHostParameters taskIdentityParameters) 1216returnClass = _projectInstance.TaskRegistry.GetRegisteredTask(_taskName, null, TaskHostParameters.Empty, true /* exact match */, _targetLoggingContext, _taskLocation, _buildComponentHost?.BuildParameters?.MultiThreaded ?? false); 1220returnClass = _projectInstance.TaskRegistry.GetRegisteredTask(_taskName, null, TaskHostParameters.Empty, false /* fuzzy match */, _targetLoggingContext, _taskLocation, _buildComponentHost?.BuildParameters?.MultiThreaded ?? false); 1268private ITask InstantiateTask(int scheduledNodeId, in TaskHostParameters taskIdentityParameters) 2111in TaskHostParameters taskIdentityParameters, 2152TaskHostParameters taskHostParameters = new(XMakeAttributes.GetCurrentMSBuildRuntime(), XMakeAttributes.GetCurrentMSBuildArchitecture()); 2157taskHostParameters = TaskHostParameters.MergeTaskHostParameters(taskHostParameters, taskIdentityParameters);
Evaluation\IntrinsicFunctions.cs (1)
505TaskHostParameters parameters = new(runtime, architecture);
Instance\TaskFactories\AssemblyTaskFactory.cs (20)
65private TaskHostParameters _factoryIdentityParameters; 242in TaskHostParameters taskFactoryIdentityParameters, 307in TaskHostParameters taskIdentityParameters, 321TaskHostParameters mergedParameters = TaskHostParameters.Empty; 426private TaskHostParameters UpdateTaskHostParameters(TaskHostParameters taskHostParameters) 451internal bool TaskNameCreatableByFactory(string taskName, in TaskHostParameters taskIdentityParameters, string taskProjectFile, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation) 510private static void VerifyThrowIdentityParametersValid(in TaskHostParameters identityParameters, IElementLocation errorLocation, string taskName, string runtimeName, string architectureName) 552private static bool TaskIdentityParametersMatchFactory(in TaskHostParameters factoryIdentityParameters, in TaskHostParameters taskIdentityParameters) 577private static TaskHostParameters MergeTaskFactoryParameterSets( 578in TaskHostParameters factoryIdentityParameters, 579in TaskHostParameters taskIdentityParameters) 583return TaskHostParameters.Empty; 625private static TaskHostParameters AddNetHostParamsIfNeeded( 626in TaskHostParameters currentParams, 667private static bool TaskHostParametersMatchCurrentProcess(in TaskHostParameters mergedParameters) 758public bool Initialize(string taskName, TaskHostParameters factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 779public ITask CreateTask(IBuildEngine taskFactoryLoggingHost, TaskHostParameters taskIdentityParameters)
Instance\TaskFactories\TaskHostTask.cs (2)
77private TaskHostParameters _taskHostParameters; 167TaskHostParameters taskHostParameters,
Instance\TaskFactoryWrapper.cs (3)
73private TaskHostParameters _factoryIdentityParameters; 91TaskHostParameters factoryIdentityParameters, 169public TaskHostParameters FactoryIdentityParameters => _factoryIdentityParameters;
Instance\TaskRegistry.cs (20)
422TaskHostParameters taskFactoryParameters = TaskHostParameters.Empty; 453in TaskHostParameters taskIdentityParameters, 512in TaskHostParameters taskIdentityParameters, 671in TaskHostParameters taskFactoryParameters, 754TaskHostParameters taskIdentityParameters, 778private TaskHostParameters _taskIdentityParameters; 783internal RegisteredTaskIdentity(string name, in TaskHostParameters taskIdentityParameters) 786_taskIdentityParameters = taskIdentityParameters.IsEmpty ? TaskHostParameters.Empty : taskIdentityParameters; 804public TaskHostParameters TaskIdentityParameters => _taskIdentityParameters; 931private static bool IdentityParametersMatch(in TaskHostParameters x, in TaskHostParameters y, bool exactMatchRequired) 1073private TaskHostParameters _taskFactoryParameters; 1142in TaskHostParameters taskFactoryParameters, 1240internal TaskHostParameters TaskFactoryParameters 1274internal bool CanTaskBeCreatedByFactory(string taskName, string taskProjectFile, TaskHostParameters taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, bool isMultiThreadedBuild) 1383internal TaskFactoryWrapper GetTaskFactoryFromRegistrationRecord(string taskName, string taskProjectFile, in TaskHostParameters taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, bool isMultiThreadedBuild) 1510{ nameof(TaskHostParameters.Runtime), TaskFactoryParameters.Runtime }, 1511{ nameof(TaskHostParameters.Architecture), TaskFactoryParameters.Architecture }, 1512{ nameof(TaskHostParameters.TaskHostFactoryExplicitlyRequested), TaskFactoryParameters.TaskHostFactoryExplicitlyRequested.ToString() },
Microsoft.Build.Framework (15)
BackEnd\CommunicationsUtilities.cs (1)
569TaskHostParameters taskHostParameters,
BinaryTranslator.cs (2)
190public void Translate(ref TaskHostParameters value) 1073public void Translate(ref TaskHostParameters value)
ITaskFactory3.cs (2)
52bool Initialize(string taskName, TaskHostParameters factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost); 76ITask CreateTask(IBuildEngine taskFactoryLoggingHost, TaskHostParameters taskIdentityParameters);
ITranslator.cs (1)
351void Translate(ref TaskHostParameters value);
TaskHostParameters.cs (9)
12public readonly struct TaskHostParameters : IEquatable<TaskHostParameters> 17public static readonly TaskHostParameters Empty = new(); 76public override bool Equals(object? obj) => obj is TaskHostParameters other && Equals(other); 78public bool Equals(TaskHostParameters other) => 110internal static TaskHostParameters MergeTaskHostParameters(TaskHostParameters baseParameters, TaskHostParameters overrideParameters) 140/// Creates a new instance of <see cref="TaskHostParameters"/> with the specified value for the 143internal TaskHostParameters WithTaskHostFactoryExplicitlyRequested(bool taskHostFactoryExplicitlyRequested)
MSBuild (1)
NodeEndpointOutOfProcTaskHost.cs (1)
36new(CommunicationsUtilities.GetHandshakeOptions(taskHost: true, taskHostParameters: TaskHostParameters.Empty, nodeReuse: _nodeReuse));