56 references to HandshakeOptions
Microsoft.Build (56)
BackEnd\Components\Communications\NodeEndpointOutOfProc.cs (1)
36HandshakeOptions handshakeOptions = CommunicationsUtilities.GetHandshakeOptions(
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (3)
592private HandshakeOptions _handshakeOptions; 660HandshakeOptions handshakeOptions = HandshakeOptions.None)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (16)
366internal static string GetTaskHostNameFromHostContext(HandshakeOptions hostContext) 368ErrorUtilities.VerifyThrowInternalErrorUnreachable(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost)); 369if (Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2)) 392s_msbuildName = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.NET) 408internal static string GetMSBuildExecutablePathForNonNETRuntimes(HandshakeOptions hostContext) 410ErrorUtilities.VerifyThrowInternalErrorUnreachable(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost)); 417bool isX64 = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.X64); 418bool isArm64 = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.Arm64); 419bool isCLR2 = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2); 453internal static (string RuntimeHostPath, string MSBuildAssemblyPath) GetMSBuildLocationForNETRuntime(HandshakeOptions hostContext, Dictionary<string, string> taskHostParameters) 455ErrorUtilities.VerifyThrowInternalErrorUnreachable(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost)); 570HandshakeOptions hostContext, 616internal bool CreateNode(HandshakeOptions hostContext, int taskHostNodeId, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration, Dictionary<string, string> taskHostParameters) 676bool NodeReuseIsEnabled(HandshakeOptions hostContext) 678bool isCLR2 = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2); 680return Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.NodeReuse)
BackEnd\Components\Communications\RarNodeLauncher.cs (1)
23_pipeName = NamedPipeUtil.GetRarNodePipeName(new(HandshakeOptions.None));
CommunicationsUtilities.cs (20)
166public const HandshakeOptions NetTaskHostFlags = HandshakeOptions.NET | HandshakeOptions.TaskHost; 184internal Handshake(HandshakeOptions nodeType, string predefinedToolsDirectory = null) 190internal static bool IsHandshakeOptionEnabled(HandshakeOptions hostContext, HandshakeOptions option) => (hostContext & option) == option; 193internal HandshakeOptions HandshakeOptions { get; } 195protected Handshake(HandshakeOptions nodeType, bool includeSessionId, string predefinedToolsDirectory) 283internal ServerNodeHandshake(HandshakeOptions nodeType) 847internal static HandshakeOptions GetHandshakeOptions( 854HandshakeOptions context = taskHost ? HandshakeOptions.TaskHost : HandshakeOptions.None; 897context |= HandshakeOptions.X64; 901context |= HandshakeOptions.Arm64; 914context |= HandshakeOptions.CLR2; 917context |= HandshakeOptions.NET; 927context |= HandshakeOptions.NodeReuse; 932context |= HandshakeOptions.LowPriority; 946context |= HandshakeOptions.Administrator;
Evaluation\IntrinsicFunctions.cs (1)
511HandshakeOptions desiredContext = CommunicationsUtilities.GetHandshakeOptions(taskHost: true, taskHostParameters: parameters);
INodePacket.cs (1)
327public static bool TryCreateExtendedHeaderType(HandshakeOptions handshakeOptions, NodePacketType type, out byte extendedheader)
Instance\TaskFactories\TaskHostTask.cs (6)
100private HandshakeOptions _requiredContext = HandshakeOptions.None; 390private static int GenerateTaskHostNodeId(int scheduledNodeId, HandshakeOptions handshakeOptions) 642private void LogErrorUnableToCreateTaskHost(HandshakeOptions requiredContext, string runtime, string architecture, NodeFailedToLaunchException e) 654((requiredContext & HandshakeOptions.CLR2) == HandshakeOptions.CLR2
NodeEndpointOutOfProcBase.cs (7)
591var expectedNodeType = (HandshakeOptions)(expectedOptions & 0x00FFFFFF); 592var receivedNodeType = (HandshakeOptions)(receivedOptions & 0x00FFFFFF); 595bool receivedIsX86 = !Handshake.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.X64) && 596!Handshake.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.Arm64); 598bool expectedIsX64 = Handshake.IsHandshakeOptionEnabled(expectedNodeType, HandshakeOptions.X64);