13 instantiations of TaskHostParameters
Microsoft.Build (9)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
567
return new
TaskHostParameters
(msbuildRuntime, msbuildArchitecture);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1823
TaskHostParameters taskHostParameters =
new
(XMakeAttributes.GetCurrentMSBuildRuntime(), XMakeAttributes.GetCurrentMSBuildArchitecture());
Evaluation\IntrinsicFunctions.cs (1)
505
TaskHostParameters parameters =
new
(runtime, architecture);
Instance\TaskFactories\AssemblyTaskFactory.cs (5)
450
return new
TaskHostParameters
(
604
: new
TaskHostParameters
(normalizedRuntime, normalizedArch);
614
: new
TaskHostParameters
(normalizedRuntime, normalizedArch);
627
return new
TaskHostParameters
(
667
return new
TaskHostParameters
(
Instance\TaskRegistry.cs (1)
428
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)
540
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)
449
TaskHostParameters
taskIdentityParameters = GatherTaskIdentityParameters(bucket.Expander);
553
private
TaskHostParameters
GatherTaskIdentityParameters(Expander<ProjectPropertyInstance, ProjectItemInstance> expander)
570
return
TaskHostParameters
.Empty;
677
private async Task<WorkUnitResult> InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket,
TaskHostParameters
taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask)
BackEnd\Node\OutOfProcServerNode.cs (1)
97
CommunicationsUtilities.GetHandshakeOptions(taskHost: false, taskHostParameters:
TaskHostParameters
.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture()));
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (11)
300
public (TaskRequirements? requirements, TaskFactoryWrapper taskFactoryWrapper) FindTask(in
TaskHostParameters
taskIdentityParameters)
331
public bool InitializeForBatch(TaskLoggingContext loggingContext, ItemBucket batchBucket, in
TaskHostParameters
taskIdentityParameters, int scheduledNodeId)
921
private TaskFactoryWrapper FindTaskInRegistry(in
TaskHostParameters
taskIdentityParameters)
932
returnClass = _projectInstance.TaskRegistry.GetRegisteredTask(_taskName, null,
TaskHostParameters
.Empty, true /* exact match */, _targetLoggingContext, _taskLocation, _buildComponentHost?.BuildParameters?.MultiThreaded ?? false);
936
returnClass = _projectInstance.TaskRegistry.GetRegisteredTask(_taskName, null,
TaskHostParameters
.Empty, false /* fuzzy match */, _targetLoggingContext, _taskLocation, _buildComponentHost?.BuildParameters?.MultiThreaded ?? false);
968
returnClass = new TaskFactoryWrapper(new IntrinsicTaskFactory(typeof(MSBuild)), new LoadedType(typeof(MSBuild), AssemblyLoadInfo.Create(taskExecutionHostAssembly.FullName, null), taskExecutionHostAssembly, typeof(ITaskItem)), _taskName,
TaskHostParameters
.Empty);
974
returnClass = new TaskFactoryWrapper(new IntrinsicTaskFactory(typeof(CallTarget)), new LoadedType(typeof(CallTarget), AssemblyLoadInfo.Create(taskExecutionHostAssembly.FullName, null), taskExecutionHostAssembly, typeof(ITaskItem)), _taskName,
TaskHostParameters
.Empty);
985
private ITask InstantiateTask(int scheduledNodeId, in
TaskHostParameters
taskIdentityParameters)
1782
in
TaskHostParameters
taskIdentityParameters,
1823
TaskHostParameters
taskHostParameters = new(XMakeAttributes.GetCurrentMSBuildRuntime(), XMakeAttributes.GetCurrentMSBuildArchitecture());
1828
taskHostParameters =
TaskHostParameters
.MergeTaskHostParameters(taskHostParameters, taskIdentityParameters);
Evaluation\IntrinsicFunctions.cs (1)
505
TaskHostParameters
parameters = new(runtime, architecture);
Instance\TaskFactories\AssemblyTaskFactory.cs (20)
64
private
TaskHostParameters
_factoryIdentityParameters;
235
in
TaskHostParameters
taskFactoryIdentityParameters,
300
in
TaskHostParameters
taskIdentityParameters,
314
TaskHostParameters
mergedParameters =
TaskHostParameters
.Empty;
438
private
TaskHostParameters
UpdateTaskHostParameters(
TaskHostParameters
taskHostParameters)
462
internal bool TaskNameCreatableByFactory(string taskName, in
TaskHostParameters
taskIdentityParameters, string taskProjectFile, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation)
521
private static void VerifyThrowIdentityParametersValid(in
TaskHostParameters
identityParameters, IElementLocation errorLocation, string taskName, string runtimeName, string architectureName)
563
private static bool TaskIdentityParametersMatchFactory(in
TaskHostParameters
factoryIdentityParameters, in
TaskHostParameters
taskIdentityParameters)
588
private static
TaskHostParameters
MergeTaskFactoryParameterSets(
589
in
TaskHostParameters
factoryIdentityParameters,
590
in
TaskHostParameters
taskIdentityParameters)
594
return
TaskHostParameters
.Empty;
636
private static
TaskHostParameters
AddNetHostParamsIfNeeded(
637
in
TaskHostParameters
currentParams,
678
private static bool TaskHostParametersMatchCurrentProcess(in
TaskHostParameters
mergedParameters)
768
public bool Initialize(string taskName,
TaskHostParameters
factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
788
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)
421
TaskHostParameters
taskFactoryParameters =
TaskHostParameters
.Empty;
451
in
TaskHostParameters
taskIdentityParameters,
509
in
TaskHostParameters
taskIdentityParameters,
678
in
TaskHostParameters
taskFactoryParameters,
760
TaskHostParameters
taskIdentityParameters,
784
private
TaskHostParameters
_taskIdentityParameters;
789
internal RegisteredTaskIdentity(string name, in
TaskHostParameters
taskIdentityParameters)
792
_taskIdentityParameters = taskIdentityParameters.IsEmpty ?
TaskHostParameters
.Empty : taskIdentityParameters;
810
public
TaskHostParameters
TaskIdentityParameters => _taskIdentityParameters;
937
private static bool IdentityParametersMatch(in
TaskHostParameters
x, in
TaskHostParameters
y, bool exactMatchRequired)
1084
private
TaskHostParameters
_taskFactoryParameters;
1153
in
TaskHostParameters
taskFactoryParameters,
1251
internal
TaskHostParameters
TaskFactoryParameters
1284
internal bool CanTaskBeCreatedByFactory(string taskName, string taskProjectFile,
TaskHostParameters
taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, bool isMultiThreadedBuild)
1392
internal TaskFactoryWrapper GetTaskFactoryFromRegistrationRecord(string taskName, string taskProjectFile, in
TaskHostParameters
taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, bool isMultiThreadedBuild)
1518
{ nameof(
TaskHostParameters
.Runtime), TaskFactoryParameters.Runtime },
1519
{ nameof(
TaskHostParameters
.Architecture), TaskFactoryParameters.Architecture },
1520
{ nameof(
TaskHostParameters
.TaskHostFactoryExplicitlyRequested), TaskFactoryParameters.TaskHostFactoryExplicitlyRequested.ToString() },
Microsoft.Build.Framework (15)
BackEnd\CommunicationsUtilities.cs (1)
539
TaskHostParameters
taskHostParameters,
BinaryTranslator.cs (2)
190
public void Translate(ref
TaskHostParameters
value)
1073
public void Translate(ref
TaskHostParameters
value)
ITaskFactory3.cs (2)
50
bool Initialize(string taskName,
TaskHostParameters
factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost);
73
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));