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>();
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 (13)
92
protected internal Handshake(
HandshakeOptions
nodeType)
148
internal ServerNodeHandshake(
HandshakeOptions
nodeType)
607
internal static
HandshakeOptions
GetHandshakeOptions(bool taskHost, string architectureFlagToSet = null, bool nodeReuse = false, bool lowPriority = false, IDictionary<string, string> taskHostParameters = null)
609
HandshakeOptions
context = taskHost ?
HandshakeOptions
.TaskHost :
HandshakeOptions
.None;
652
context |=
HandshakeOptions
.X64;
656
context |=
HandshakeOptions
.Arm64;
669
context |=
HandshakeOptions
.CLR2;
672
context |=
HandshakeOptions
.NET;
681
context |=
HandshakeOptions
.NodeReuse;
685
context |=
HandshakeOptions
.LowPriority;
694
context |=
HandshakeOptions
.Administrator;
Evaluation\IntrinsicFunctions.cs (1)
492
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");