13 instantiations of TaskHostParameters
Microsoft.Build (9)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
563
return new
TaskHostParameters
(msbuildRuntime, msbuildArchitecture);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
2152
TaskHostParameters taskHostParameters =
new
(XMakeAttributes.GetCurrentMSBuildRuntime(), XMakeAttributes.GetCurrentMSBuildArchitecture());
Evaluation\IntrinsicFunctions.cs (1)
505
TaskHostParameters parameters =
new
(runtime, architecture);
Instance\TaskFactories\AssemblyTaskFactory.cs (5)
438
return new
TaskHostParameters
(
593
: new
TaskHostParameters
(normalizedRuntime, normalizedArch);
603
: new
TaskHostParameters
(normalizedRuntime, normalizedArch);
616
return new
TaskHostParameters
(
656
return new
TaskHostParameters
(
Instance\TaskRegistry.cs (1)
429
taskFactoryParameters = 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)
641
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 (5)
513
internal static (string RuntimeHostPath, string MSBuildPath) GetMSBuildLocationForNETRuntime(HandshakeOptions hostContext,
TaskHostParameters
taskHostParameters)
520
private static string GetMSBuildPath(in
TaskHostParameters
taskHostParameters)
632
in
TaskHostParameters
taskHostParameters,
712
internal bool CreateNode(TaskHostNodeKey nodeKey, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration, in
TaskHostParameters
taskHostParameters)
745
NodeLaunchData ResolveNodeLaunchConfiguration(HandshakeOptions hostContext, in
TaskHostParameters
taskHostParameters)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (4)
445
TaskHostParameters
taskIdentityParameters = GatherTaskIdentityParameters(bucket.Expander);
549
private
TaskHostParameters
GatherTaskIdentityParameters(Expander<ProjectPropertyInstance, ProjectItemInstance> expander)
566
return
TaskHostParameters
.Empty;
673
private async Task<WorkUnitResult> InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket,
TaskHostParameters
taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask)
BackEnd\Node\OutOfProcServerNode.cs (1)
111
CommunicationsUtilities.GetHandshakeOptions(taskHost: false, taskHostParameters:
TaskHostParameters
.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture()));
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (11)
313
public (TaskRequirements? requirements, TaskFactoryWrapper taskFactoryWrapper) FindTask(in
TaskHostParameters
taskIdentityParameters)
399
taskFactoryWrapper = new TaskFactoryWrapper(_registeredTaskFactory, loadedType, _taskName,
TaskHostParameters
.Empty);
447
TaskHostParameters
.Empty);
453
public bool InitializeForBatch(TaskLoggingContext loggingContext, ItemBucket batchBucket, in
TaskHostParameters
taskIdentityParameters, int scheduledNodeId)
1205
private TaskFactoryWrapper FindTaskInRegistry(in
TaskHostParameters
taskIdentityParameters)
1216
returnClass = _projectInstance.TaskRegistry.GetRegisteredTask(_taskName, null,
TaskHostParameters
.Empty, true /* exact match */, _targetLoggingContext, _taskLocation, _buildComponentHost?.BuildParameters?.MultiThreaded ?? false);
1220
returnClass = _projectInstance.TaskRegistry.GetRegisteredTask(_taskName, null,
TaskHostParameters
.Empty, false /* fuzzy match */, _targetLoggingContext, _taskLocation, _buildComponentHost?.BuildParameters?.MultiThreaded ?? false);
1268
private ITask InstantiateTask(int scheduledNodeId, in
TaskHostParameters
taskIdentityParameters)
2111
in
TaskHostParameters
taskIdentityParameters,
2152
TaskHostParameters
taskHostParameters = new(XMakeAttributes.GetCurrentMSBuildRuntime(), XMakeAttributes.GetCurrentMSBuildArchitecture());
2157
taskHostParameters =
TaskHostParameters
.MergeTaskHostParameters(taskHostParameters, taskIdentityParameters);
Evaluation\IntrinsicFunctions.cs (1)
505
TaskHostParameters
parameters = new(runtime, architecture);
Instance\TaskFactories\AssemblyTaskFactory.cs (20)
65
private
TaskHostParameters
_factoryIdentityParameters;
242
in
TaskHostParameters
taskFactoryIdentityParameters,
307
in
TaskHostParameters
taskIdentityParameters,
321
TaskHostParameters
mergedParameters =
TaskHostParameters
.Empty;
426
private
TaskHostParameters
UpdateTaskHostParameters(
TaskHostParameters
taskHostParameters)
451
internal bool TaskNameCreatableByFactory(string taskName, in
TaskHostParameters
taskIdentityParameters, string taskProjectFile, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation)
510
private static void VerifyThrowIdentityParametersValid(in
TaskHostParameters
identityParameters, IElementLocation errorLocation, string taskName, string runtimeName, string architectureName)
552
private static bool TaskIdentityParametersMatchFactory(in
TaskHostParameters
factoryIdentityParameters, in
TaskHostParameters
taskIdentityParameters)
577
private static
TaskHostParameters
MergeTaskFactoryParameterSets(
578
in
TaskHostParameters
factoryIdentityParameters,
579
in
TaskHostParameters
taskIdentityParameters)
583
return
TaskHostParameters
.Empty;
625
private static
TaskHostParameters
AddNetHostParamsIfNeeded(
626
in
TaskHostParameters
currentParams,
667
private static bool TaskHostParametersMatchCurrentProcess(in
TaskHostParameters
mergedParameters)
758
public bool Initialize(string taskName,
TaskHostParameters
factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
779
public ITask CreateTask(IBuildEngine taskFactoryLoggingHost,
TaskHostParameters
taskIdentityParameters)
Instance\TaskFactories\TaskHostTask.cs (2)
77
private
TaskHostParameters
_taskHostParameters;
167
TaskHostParameters
taskHostParameters,
Instance\TaskFactoryWrapper.cs (3)
73
private
TaskHostParameters
_factoryIdentityParameters;
91
TaskHostParameters
factoryIdentityParameters,
169
public
TaskHostParameters
FactoryIdentityParameters => _factoryIdentityParameters;
Instance\TaskRegistry.cs (20)
422
TaskHostParameters
taskFactoryParameters =
TaskHostParameters
.Empty;
453
in
TaskHostParameters
taskIdentityParameters,
512
in
TaskHostParameters
taskIdentityParameters,
671
in
TaskHostParameters
taskFactoryParameters,
754
TaskHostParameters
taskIdentityParameters,
778
private
TaskHostParameters
_taskIdentityParameters;
783
internal RegisteredTaskIdentity(string name, in
TaskHostParameters
taskIdentityParameters)
786
_taskIdentityParameters = taskIdentityParameters.IsEmpty ?
TaskHostParameters
.Empty : taskIdentityParameters;
804
public
TaskHostParameters
TaskIdentityParameters => _taskIdentityParameters;
931
private static bool IdentityParametersMatch(in
TaskHostParameters
x, in
TaskHostParameters
y, bool exactMatchRequired)
1073
private
TaskHostParameters
_taskFactoryParameters;
1142
in
TaskHostParameters
taskFactoryParameters,
1240
internal
TaskHostParameters
TaskFactoryParameters
1274
internal bool CanTaskBeCreatedByFactory(string taskName, string taskProjectFile,
TaskHostParameters
taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, bool isMultiThreadedBuild)
1383
internal 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)
569
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));