53 references to HandshakeOptions
Microsoft.Build (53)
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);
BackEnd\Components\Communications\RarNodeLauncher.cs (1)
23
_pipeName = NamedPipeUtil.GetRarNodePipeName(new(
HandshakeOptions
.None));
CommunicationsUtilities.cs (13)
94
internal Handshake(
HandshakeOptions
nodeType)
99
protected Handshake(
HandshakeOptions
nodeType, bool includeSessionId)
161
internal ServerNodeHandshake(
HandshakeOptions
nodeType)
621
internal static
HandshakeOptions
GetHandshakeOptions(bool taskHost, string architectureFlagToSet = null, bool nodeReuse = false, bool lowPriority = false, IDictionary<string, string> taskHostParameters = null)
623
HandshakeOptions
context = taskHost ?
HandshakeOptions
.TaskHost :
HandshakeOptions
.None;
666
context |=
HandshakeOptions
.X64;
670
context |=
HandshakeOptions
.Arm64;
683
context |=
HandshakeOptions
.CLR2;
686
context |=
HandshakeOptions
.NET;
695
context |=
HandshakeOptions
.NodeReuse;
699
context |=
HandshakeOptions
.LowPriority;
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");