51 references to HandshakeOptions
Microsoft.Build (51)
BackEnd\Components\Communications\NodeEndpointOutOfProc.cs (1)
36
HandshakeOptions
handshakeOptions = CommunicationsUtilities.GetHandshakeOptions(
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (32)
88
private Dictionary<
HandshakeOptions
, NodeContext> _nodeContexts;
184
public void SendData(
HandshakeOptions
hostContext, INodePacket packet)
228
_nodeContexts = new Dictionary<
HandshakeOptions
, NodeContext>();
375
internal static string GetTaskHostNameFromHostContext(
HandshakeOptions
hostContext)
377
ErrorUtilities.VerifyThrowInternalErrorUnreachable((hostContext &
HandshakeOptions
.TaskHost) ==
HandshakeOptions
.TaskHost);
378
if ((hostContext &
HandshakeOptions
.CLR2) ==
HandshakeOptions
.CLR2)
390
s_msbuildName = (hostContext &
HandshakeOptions
.NET) ==
HandshakeOptions
.NET
405
internal static string GetMSBuildLocationFromHostContext(
HandshakeOptions
hostContext)
414
ErrorUtilities.VerifyThrowInternalErrorUnreachable((hostContext &
HandshakeOptions
.TaskHost) ==
HandshakeOptions
.TaskHost);
416
if ((hostContext &
HandshakeOptions
.Arm64) ==
HandshakeOptions
.Arm64 && (hostContext &
HandshakeOptions
.CLR2) ==
HandshakeOptions
.CLR2)
421
else if ((hostContext &
HandshakeOptions
.X64) ==
HandshakeOptions
.X64 && (hostContext &
HandshakeOptions
.CLR2) ==
HandshakeOptions
.CLR2)
435
else if ((hostContext &
HandshakeOptions
.CLR2) ==
HandshakeOptions
.CLR2)
448
else if ((hostContext &
HandshakeOptions
.X64) ==
HandshakeOptions
.X64)
457
else if ((hostContext &
HandshakeOptions
.Arm64) ==
HandshakeOptions
.Arm64)
487
internal bool AcquireAndSetUpHost(
HandshakeOptions
hostContext, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration)
517
internal void DisconnectFromHost(
HandshakeOptions
hostContext)
528
internal bool CreateNode(
HandshakeOptions
hostContext, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration)
573
_nodeContexts[(
HandshakeOptions
)context.NodeId] = context;
592
_nodeContexts.Remove((
HandshakeOptions
)nodeId);
CommunicationsUtilities.cs (12)
92
protected internal Handshake(
HandshakeOptions
nodeType)
149
internal ServerNodeHandshake(
HandshakeOptions
nodeType)
603
internal static
HandshakeOptions
GetHandshakeOptions(bool taskHost, string architectureFlagToSet = null, bool nodeReuse = false, bool lowPriority = false, IDictionary<string, string> taskHostParameters = null)
605
HandshakeOptions
context = taskHost ?
HandshakeOptions
.TaskHost :
HandshakeOptions
.None;
648
context |=
HandshakeOptions
.X64;
652
context |=
HandshakeOptions
.Arm64;
665
context |=
HandshakeOptions
.CLR2;
668
context |=
HandshakeOptions
.NET;
677
context |=
HandshakeOptions
.NodeReuse;
681
context |=
HandshakeOptions
.LowPriority;
Evaluation\IntrinsicFunctions.cs (1)
512
HandshakeOptions
desiredContext = CommunicationsUtilities.GetHandshakeOptions(taskHost: true, taskHostParameters: parameters);
Instance\TaskFactories\TaskHostTask.cs (5)
92
private
HandshakeOptions
_requiredContext =
HandshakeOptions
.None;
570
private void LogErrorUnableToCreateTaskHost(
HandshakeOptions
requiredContext, string runtime, string architecture, NodeFailedToLaunchException e)
575
((requiredContext &
HandshakeOptions
.CLR2) ==
HandshakeOptions
.CLR2 ? "MSBuildTaskHost.exe" : "MSBuild.exe");