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>(); 375internal static string GetTaskHostNameFromHostContext(HandshakeOptions hostContext) 377ErrorUtilities.VerifyThrowInternalErrorUnreachable((hostContext & HandshakeOptions.TaskHost) == HandshakeOptions.TaskHost); 378if ((hostContext & HandshakeOptions.CLR2) == HandshakeOptions.CLR2) 390s_msbuildName = (hostContext & HandshakeOptions.NET) == HandshakeOptions.NET 405internal static string GetMSBuildLocationFromHostContext(HandshakeOptions hostContext) 414ErrorUtilities.VerifyThrowInternalErrorUnreachable((hostContext & HandshakeOptions.TaskHost) == HandshakeOptions.TaskHost); 416if ((hostContext & HandshakeOptions.Arm64) == HandshakeOptions.Arm64 && (hostContext & HandshakeOptions.CLR2) == HandshakeOptions.CLR2) 421else if ((hostContext & HandshakeOptions.X64) == HandshakeOptions.X64 && (hostContext & HandshakeOptions.CLR2) == HandshakeOptions.CLR2) 435else if ((hostContext & HandshakeOptions.CLR2) == HandshakeOptions.CLR2) 448else if ((hostContext & HandshakeOptions.X64) == HandshakeOptions.X64) 457else if ((hostContext & HandshakeOptions.Arm64) == HandshakeOptions.Arm64) 487internal bool AcquireAndSetUpHost(HandshakeOptions hostContext, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration) 517internal void DisconnectFromHost(HandshakeOptions hostContext) 528internal bool CreateNode(HandshakeOptions hostContext, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration) 573_nodeContexts[(HandshakeOptions)context.NodeId] = context; 592_nodeContexts.Remove((HandshakeOptions)nodeId);
CommunicationsUtilities.cs (13)
92protected internal Handshake(HandshakeOptions nodeType) 148internal ServerNodeHandshake(HandshakeOptions nodeType) 607internal static HandshakeOptions GetHandshakeOptions(bool taskHost, string architectureFlagToSet = null, bool nodeReuse = false, bool lowPriority = false, IDictionary<string, string> taskHostParameters = null) 609HandshakeOptions context = taskHost ? HandshakeOptions.TaskHost : HandshakeOptions.None; 652context |= HandshakeOptions.X64; 656context |= HandshakeOptions.Arm64; 669context |= HandshakeOptions.CLR2; 672context |= HandshakeOptions.NET; 681context |= HandshakeOptions.NodeReuse; 685context |= HandshakeOptions.LowPriority; 694context |= HandshakeOptions.Administrator;
Evaluation\IntrinsicFunctions.cs (1)
492HandshakeOptions desiredContext = CommunicationsUtilities.GetHandshakeOptions(taskHost: true, taskHostParameters: parameters);
Instance\TaskFactories\TaskHostTask.cs (5)
92private HandshakeOptions _requiredContext = HandshakeOptions.None; 570private void LogErrorUnableToCreateTaskHost(HandshakeOptions requiredContext, string runtime, string architecture, NodeFailedToLaunchException e) 575((requiredContext & HandshakeOptions.CLR2) == HandshakeOptions.CLR2 ? "MSBuildTaskHost.exe" : "MSBuild.exe");