13 instantiations of TaskHostParameters
Microsoft.Build (9)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
612
return new
TaskHostParameters
(msbuildRuntime, msbuildArchitecture);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
2258
TaskHostParameters taskHostParameters =
new
(XMakeAttributes.GetCurrentMSBuildRuntime(), XMakeAttributes.GetCurrentMSBuildArchitecture());
Evaluation\IntrinsicFunctions.cs (1)
493
TaskHostParameters parameters =
new
(runtime, architecture);
Instance\TaskFactories\AssemblyTaskFactory.cs (5)
453
return new
TaskHostParameters
(
613
: new
TaskHostParameters
(normalizedRuntime, normalizedArch);
623
: new
TaskHostParameters
(normalizedRuntime, normalizedArch);
636
return new
TaskHostParameters
(
676
return new
TaskHostParameters
(
Instance\TaskRegistry.UsingTaskInfo.cs (1)
197
? new
TaskHostParameters
(
Microsoft.Build.Framework (4)
BinaryTranslator.cs (1)
209
value = new
TaskHostParameters
(
TaskHostParameters.cs (3)
17
public static readonly TaskHostParameters Empty =
new
();
131
return new
TaskHostParameters
(
150
return new
TaskHostParameters
(
87 references to TaskHostParameters
Microsoft.Build (71)
BackEnd\Client\MSBuildClient.cs (1)
673
taskHostParameters:
TaskHostParameters
.Empty,
BackEnd\Components\Communications\NodeEndpointOutOfProc.cs (1)
39
taskHostParameters:
TaskHostParameters
.Empty,
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
73
return new Handshake(CommunicationsUtilities.GetHandshakeOptions(taskHost: false, taskHostParameters:
TaskHostParameters
.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: enableNodeReuse, lowPriority: enableLowPriority));
91
Handshake 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 (4)
787
internal static (string RuntimeHostPath, string MSBuildPath) GetMSBuildLocationForNETRuntime(HandshakeOptions hostContext,
TaskHostParameters
taskHostParameters)
794
private static string GetMSBuildPath(in
TaskHostParameters
taskHostParameters)
907
in
TaskHostParameters
taskHostParameters,
1156
private NodeLaunchData ResolveNodeLaunchConfiguration(HandshakeOptions hostContext, in
TaskHostParameters
taskHostParameters)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (4)
447
TaskHostParameters
taskIdentityParameters = GatherTaskIdentityParameters(bucket.Expander);
598
private
TaskHostParameters
GatherTaskIdentityParameters(Expander<ProjectPropertyInstance, ProjectItemInstance> expander)
615
return
TaskHostParameters
.Empty;
722
private async Task<WorkUnitResult> InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket,
TaskHostParameters
taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask)
BackEnd\Node\OutOfProcServerNode.cs (1)
126
CommunicationsUtilities.GetHandshakeOptions(taskHost: false, taskHostParameters:
TaskHostParameters
.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture()),
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (11)
312
public (TaskRequirements? requirements, TaskFactoryWrapper taskFactoryWrapper) FindTask(in
TaskHostParameters
taskIdentityParameters)
398
taskFactoryWrapper = new TaskFactoryWrapper(_registeredTaskFactory, loadedType, _taskName,
TaskHostParameters
.Empty);
446
TaskHostParameters
.Empty);
452
public bool InitializeForBatch(TaskLoggingContext loggingContext, ItemBucket batchBucket, in
TaskHostParameters
taskIdentityParameters, int scheduledNodeId)
1198
private TaskFactoryWrapper FindTaskInRegistry(in
TaskHostParameters
taskIdentityParameters)
1209
returnClass = _projectInstance.TaskRegistry.GetRegisteredTask(_taskName, null,
TaskHostParameters
.Empty, true /* exact match */, _targetLoggingContext, _taskLocation, _buildComponentHost?.BuildParameters?.MultiThreaded ?? false);
1213
returnClass = _projectInstance.TaskRegistry.GetRegisteredTask(_taskName, null,
TaskHostParameters
.Empty, false /* fuzzy match */, _targetLoggingContext, _taskLocation, _buildComponentHost?.BuildParameters?.MultiThreaded ?? false);
1261
private ITask InstantiateTask(int scheduledNodeId, in
TaskHostParameters
taskIdentityParameters)
2217
in
TaskHostParameters
taskIdentityParameters,
2258
TaskHostParameters
taskHostParameters = new(XMakeAttributes.GetCurrentMSBuildRuntime(), XMakeAttributes.GetCurrentMSBuildArchitecture());
2263
taskHostParameters =
TaskHostParameters
.MergeTaskHostParameters(taskHostParameters, taskIdentityParameters);
Evaluation\IntrinsicFunctions.cs (1)
493
TaskHostParameters
parameters = new(runtime, architecture);
Instance\TaskFactories\AssemblyTaskFactory.cs (20)
65
private
TaskHostParameters
_factoryIdentityParameters;
244
in
TaskHostParameters
taskFactoryIdentityParameters,
315
in
TaskHostParameters
taskIdentityParameters,
329
TaskHostParameters
mergedParameters =
TaskHostParameters
.Empty;
441
private
TaskHostParameters
UpdateTaskHostParameters(
TaskHostParameters
taskHostParameters)
466
internal bool TaskNameCreatableByFactory(string taskName, in
TaskHostParameters
taskIdentityParameters, string taskProjectFile, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation)
530
private static void VerifyThrowIdentityParametersValid(in
TaskHostParameters
identityParameters, IElementLocation errorLocation, string taskName, string runtimeName, string architectureName)
572
private static bool TaskIdentityParametersMatchFactory(in
TaskHostParameters
factoryIdentityParameters, in
TaskHostParameters
taskIdentityParameters)
597
private static
TaskHostParameters
MergeTaskFactoryParameterSets(
598
in
TaskHostParameters
factoryIdentityParameters,
599
in
TaskHostParameters
taskIdentityParameters)
603
return
TaskHostParameters
.Empty;
645
private static
TaskHostParameters
AddNetHostParamsIfNeeded(
646
in
TaskHostParameters
currentParams,
687
private static bool TaskHostParametersMatchCurrentProcess(in
TaskHostParameters
mergedParameters)
778
public bool Initialize(string taskName,
TaskHostParameters
factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
799
public ITask CreateTask(IBuildEngine taskFactoryLoggingHost,
TaskHostParameters
taskIdentityParameters)
Instance\TaskFactories\TaskHostTask.cs (2)
77
private
TaskHostParameters
_taskHostParameters;
190
TaskHostParameters
taskHostParameters,
Instance\TaskFactoryWrapper.cs (3)
73
private
TaskHostParameters
_factoryIdentityParameters;
91
TaskHostParameters
factoryIdentityParameters,
169
public
TaskHostParameters
FactoryIdentityParameters => _factoryIdentityParameters;
Instance\TaskRegistry.cs (17)
258
in
TaskHostParameters
taskIdentityParameters,
317
in
TaskHostParameters
taskIdentityParameters,
549
TaskHostParameters
taskIdentityParameters,
573
private
TaskHostParameters
_taskIdentityParameters;
578
internal RegisteredTaskIdentity(string name, in
TaskHostParameters
taskIdentityParameters)
581
_taskIdentityParameters = taskIdentityParameters.IsEmpty ?
TaskHostParameters
.Empty : taskIdentityParameters;
599
public
TaskHostParameters
TaskIdentityParameters => _taskIdentityParameters;
726
private static bool IdentityParametersMatch(in
TaskHostParameters
x, in
TaskHostParameters
y, bool exactMatchRequired)
868
private
TaskHostParameters
_taskFactoryParameters;
942
in
TaskHostParameters
taskFactoryParameters,
1040
internal
TaskHostParameters
TaskFactoryParameters
1074
internal bool CanTaskBeCreatedByFactory(string taskName, string taskProjectFile,
TaskHostParameters
taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, bool isMultiThreadedBuild)
1183
internal TaskFactoryWrapper GetTaskFactoryFromRegistrationRecord(string taskName, string taskProjectFile, in
TaskHostParameters
taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, bool isMultiThreadedBuild)
1315
{ nameof(
TaskHostParameters
.Runtime), TaskFactoryParameters.Runtime },
1316
{ nameof(
TaskHostParameters
.Architecture), TaskFactoryParameters.Architecture },
1317
{ nameof(
TaskHostParameters
.TaskHostFactoryExplicitlyRequested), TaskFactoryParameters.TaskHostFactoryExplicitlyRequested.ToString() },
Instance\TaskRegistry.UsingTaskInfo.cs (4)
119
public readonly
TaskHostParameters
TaskFactoryParameters;
136
TaskHostParameters
taskFactoryParameters,
192
TaskHostParameters
taskFactoryParameters;
200
:
TaskHostParameters
.Empty;
Microsoft.Build.Framework (15)
BackEnd\CommunicationsUtilities.cs (1)
570
TaskHostParameters
taskHostParameters,
BinaryTranslator.cs (2)
190
public void Translate(ref
TaskHostParameters
value)
1073
public void Translate(ref
TaskHostParameters
value)
ITaskFactory3.cs (2)
52
bool Initialize(string taskName,
TaskHostParameters
factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost);
76
ITask CreateTask(IBuildEngine taskFactoryLoggingHost,
TaskHostParameters
taskIdentityParameters);
ITranslator.cs (1)
351
void Translate(ref
TaskHostParameters
value);
TaskHostParameters.cs (9)
12
public readonly struct TaskHostParameters : IEquatable<
TaskHostParameters
>
17
public static readonly
TaskHostParameters
Empty = new();
76
public override bool Equals(object? obj) => obj is
TaskHostParameters
other && Equals(other);
78
public bool Equals(
TaskHostParameters
other) =>
110
internal static
TaskHostParameters
MergeTaskHostParameters(
TaskHostParameters
baseParameters,
TaskHostParameters
overrideParameters)
140
/// Creates a new instance of <see cref="
TaskHostParameters
"/> with the specified value for the
143
internal
TaskHostParameters
WithTaskHostFactoryExplicitlyRequested(bool taskHostFactoryExplicitlyRequested)
MSBuild (1)
NodeEndpointOutOfProcTaskHost.cs (1)
36
new(CommunicationsUtilities.GetHandshakeOptions(taskHost: true, taskHostParameters:
TaskHostParameters
.Empty, nodeReuse: _nodeReuse));