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