52 references to HandshakeOptions
Microsoft.Build (52)
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>();
385
internal static string GetTaskHostNameFromHostContext(
HandshakeOptions
hostContext)
387
ErrorUtilities.VerifyThrowInternalErrorUnreachable((hostContext &
HandshakeOptions
.TaskHost) ==
HandshakeOptions
.TaskHost);
388
if ((hostContext &
HandshakeOptions
.CLR2) ==
HandshakeOptions
.CLR2)
400
s_msbuildName = (hostContext &
HandshakeOptions
.NET) ==
HandshakeOptions
.NET
415
internal static string GetMSBuildLocationFromHostContext(
HandshakeOptions
hostContext)
424
ErrorUtilities.VerifyThrowInternalErrorUnreachable((hostContext &
HandshakeOptions
.TaskHost) ==
HandshakeOptions
.TaskHost);
426
if ((hostContext &
HandshakeOptions
.Arm64) ==
HandshakeOptions
.Arm64 && (hostContext &
HandshakeOptions
.CLR2) ==
HandshakeOptions
.CLR2)
431
else if ((hostContext &
HandshakeOptions
.X64) ==
HandshakeOptions
.X64 && (hostContext &
HandshakeOptions
.CLR2) ==
HandshakeOptions
.CLR2)
445
else if ((hostContext &
HandshakeOptions
.CLR2) ==
HandshakeOptions
.CLR2)
458
else if ((hostContext &
HandshakeOptions
.X64) ==
HandshakeOptions
.X64)
467
else if ((hostContext &
HandshakeOptions
.Arm64) ==
HandshakeOptions
.Arm64)
497
internal bool AcquireAndSetUpHost(
HandshakeOptions
hostContext, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration)
527
internal void DisconnectFromHost(
HandshakeOptions
hostContext)
538
internal bool CreateNode(
HandshakeOptions
hostContext, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration)
583
_nodeContexts[(
HandshakeOptions
)context.NodeId] = context;
602
_nodeContexts.Remove((
HandshakeOptions
)nodeId);
CommunicationsUtilities.cs (13)
94
protected internal Handshake(
HandshakeOptions
nodeType)
151
internal ServerNodeHandshake(
HandshakeOptions
nodeType)
611
internal static
HandshakeOptions
GetHandshakeOptions(bool taskHost, string architectureFlagToSet = null, bool nodeReuse = false, bool lowPriority = false, IDictionary<string, string> taskHostParameters = null)
613
HandshakeOptions
context = taskHost ?
HandshakeOptions
.TaskHost :
HandshakeOptions
.None;
656
context |=
HandshakeOptions
.X64;
660
context |=
HandshakeOptions
.Arm64;
673
context |=
HandshakeOptions
.CLR2;
676
context |=
HandshakeOptions
.NET;
685
context |=
HandshakeOptions
.NodeReuse;
689
context |=
HandshakeOptions
.LowPriority;
698
context |=
HandshakeOptions
.Administrator;
Evaluation\IntrinsicFunctions.cs (1)
509
HandshakeOptions
desiredContext = CommunicationsUtilities.GetHandshakeOptions(taskHost: true, taskHostParameters: parameters);
Instance\TaskFactories\TaskHostTask.cs (5)
94
private
HandshakeOptions
_requiredContext =
HandshakeOptions
.None;
582
private void LogErrorUnableToCreateTaskHost(
HandshakeOptions
requiredContext, string runtime, string architecture, NodeFailedToLaunchException e)
587
((requiredContext &
HandshakeOptions
.CLR2) ==
HandshakeOptions
.CLR2 ? "MSBuildTaskHost.exe" : "MSBuild.exe");