1 type derived from Handshake
Microsoft.Build (1)
CommunicationsUtilities.cs (1)
274internal sealed class ServerNodeHandshake : Handshake
4 instantiations of Handshake
Microsoft.Build (4)
BackEnd\Components\Communications\NodeEndpointOutOfProc.cs (1)
41return new Handshake(handshakeOptions);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
73return new Handshake(CommunicationsUtilities.GetHandshakeOptions(taskHost: false, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: enableNodeReuse, lowPriority: enableLowPriority)); 101Handshake hostHandshake = new(CommunicationsUtilities.GetHandshakeOptions(taskHost: false, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: ComponentHost.BuildParameters.EnableNodeReuse, lowPriority: ComponentHost.BuildParameters.LowPriority));
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
666new Handshake(hostContext),
29 references to Handshake
Microsoft.Build (29)
BackEnd\Components\Communications\NodeEndpointOutOfProc.cs (1)
34protected override Handshake GetHandshake()
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
70internal static Handshake GetHandshake(bool enableNodeReuse, bool enableLowPriority) 101Handshake hostHandshake = new(CommunicationsUtilities.GetHandshakeOptions(taskHost: false, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: ComponentHost.BuildParameters.EnableNodeReuse, lowPriority: ComponentHost.BuildParameters.LowPriority));
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (4)
191Handshake hostHandshake, 417private string GetProcessesToIgnoreKey(Handshake hostHandshake, int nodeProcessId) 450private Stream TryConnectToProcess(int nodeProcessId, int timeout, Handshake handshake) 503internal static bool TryConnectToPipeStream(NamedPipeClientStream nodeStream, string pipeName, Handshake handshake, int timeout, out HandshakeResult result)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (10)
368ErrorUtilities.VerifyThrowInternalErrorUnreachable(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost)); 369if (Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2)) 392s_msbuildName = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.NET) 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); 455ErrorUtilities.VerifyThrowInternalErrorUnreachable(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost)); 678bool isCLR2 = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2); 680return Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.NodeReuse)
BackEnd\Components\Communications\ServerNodeEndpointOutOfProc.cs (3)
13private readonly Handshake _handshake; 22Handshake handshake) 32protected override Handshake GetHandshake()
CommunicationsUtilities.cs (1)
171/// Initializes a new instance of the <see cref="Handshake"/> class with the specified node type
INodePacket.cs (2)
329if (Handshake.IsHandshakeOptionEnabled(handshakeOptions, Handshake.NetTaskHostFlags))
NodeEndpointOutOfProcBase.cs (6)
281protected abstract Handshake GetHandshake(); 410Handshake handshake = GetHandshake(); 566isAllowedMismatch = _versionHandshakeGroup.Contains(component.Key) && component.Value == Handshake.NetTaskHostHandshakeVersion; 595bool receivedIsX86 = !Handshake.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.X64) && 596!Handshake.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.Arm64); 598bool expectedIsX64 = Handshake.IsHandshakeOptionEnabled(expectedNodeType, HandshakeOptions.X64);