1 type derived from Handshake
Microsoft.Build (1)
CommunicationsUtilities.cs (1)
346internal sealed class ServerNodeHandshake : Handshake
15 instantiations of Handshake
Microsoft.Build (5)
BackEnd\Components\Communications\NodeEndpointOutOfProc.cs (1)
43return new Handshake(handshakeOptions);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
73return new Handshake(CommunicationsUtilities.GetHandshakeOptions(taskHost: false, taskHostParameters: TaskHostParameters.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: enableNodeReuse, lowPriority: enableLowPriority)); 92Handshake hostHandshake = new(CommunicationsUtilities.GetHandshakeOptions(taskHost: false, taskHostParameters: TaskHostParameters.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: ComponentHost.BuildParameters.EnableNodeReuse, lowPriority: ComponentHost.BuildParameters.LowPriority));
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (2)
725return new NodeLaunchData(GetMSBuildExecutablePathForNonNETRuntimes(hostContext), BuildCommandLineArgs(IsNodeReuseEnabled(hostContext)), new Handshake(hostContext)); 767Handshake handshake = new Handshake(hostContext);
Microsoft.Build.Engine.UnitTests (10)
BackEnd\AppHostSupport_Tests.cs (7)
194var childHandshake = new Handshake(options); 197var parentFixedHandshake = new Handshake(options); 206var parentBrokenHandshake = new Handshake(options, externalPath); 240var symlinkHandshake = new Handshake(options, symlinkDir); 243var realHandshake = new Handshake(options, realDir); 257var parentFixed = new Handshake(options, consistentDir); 258var childDefault = new Handshake(options);
BackEnd\UnixNodeReuseFixes_Tests.cs (3)
22var handshake = new Handshake(HandshakeOptions.NodeReuse); 36var h1 = new Handshake(HandshakeOptions.NodeReuse); 37var h2 = new Handshake(HandshakeOptions.NodeReuse);
46 references to Handshake
Microsoft.Build (36)
BackEnd\Components\Communications\INodeLauncher.cs (1)
27Handshake? Handshake = null,
BackEnd\Components\Communications\NodeEndpointOutOfProc.cs (1)
35protected override Handshake GetHandshake()
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
70internal static Handshake GetHandshake(bool enableNodeReuse, bool enableLowPriority) 92Handshake hostHandshake = new(CommunicationsUtilities.GetHandshakeOptions(taskHost: false, taskHostParameters: TaskHostParameters.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: ComponentHost.BuildParameters.EnableNodeReuse, lowPriority: ComponentHost.BuildParameters.LowPriority));
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (5)
269bool nodeReuseRequested = Handshake.IsHandshakeOptionEnabled(nodeLaunchData.Handshake.HandshakeOptions, HandshakeOptions.NodeReuse); 562private string GetProcessesToIgnoreKey(Handshake hostHandshake, int nodeProcessId) => 749private Stream TryConnectToProcess(int nodeProcessId, int timeout, Handshake handshake, out HandshakeResult result) 804internal static bool TryConnectToPipeStream(NamedPipeClientStream nodeStream, string pipeName, Handshake handshake, int timeout, out HandshakeResult result) 1144else if (!Handshake.IsHandshakeOptionEnabled(_handshakeOptions, HandshakeOptions.CLR2))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (11)
401ErrorUtilities.VerifyThrowInternalErrorUnreachable(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost)); 402if (Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2)) 433ErrorUtilities.VerifyThrowInternalErrorUnreachable(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost)); 461bool isX64 = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.X64); 462bool isArm64 = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.Arm64); 463bool isCLR2 = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2); 500ErrorUtilities.VerifyThrowInternalErrorUnreachable(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost)); 706if (Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.NET)) 734Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.NodeReuse) && !Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2); 767Handshake handshake = new Handshake(hostContext);
BackEnd\Components\Communications\ServerNodeEndpointOutOfProc.cs (3)
13private readonly Handshake _handshake; 22Handshake handshake) 32protected override Handshake GetHandshake()
CommunicationsUtilities.cs (3)
223/// Initializes a new instance of the <see cref="Handshake"/> class with the specified node type. 234/// Initializes a new instance of the <see cref="Handshake"/> class with the specified node type 505if (innerResult.Value != Handshake.PacketVersionFromChildMarker)
INodePacket.cs (2)
383if (Handshake.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.TaskHost) && Handshake.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.NET))
Instance\TaskFactories\TaskHostTask.cs (1)
725if (Handshake.IsHandshakeOptionEnabled(requiredContext, HandshakeOptions.NET))
NodeEndpointOutOfProcBase.cs (7)
284protected abstract Handshake GetHandshake(); 409Handshake handshake = GetHandshake(); 458_pipeServer.WriteIntForHandshake(Handshake.PacketVersionFromChildMarker); // Marker: PacketVersion follows 573isAllowedMismatch = _versionHandshakeGroup.Contains(component.Key) && component.Value == Handshake.NetTaskHostHandshakeVersion; 602bool receivedIsX86 = !Handshake.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.X64) && 603!Handshake.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.Arm64); 605bool expectedIsX64 = Handshake.IsHandshakeOptionEnabled(expectedNodeType, HandshakeOptions.X64);
Microsoft.Build.Engine.UnitTests (10)
BackEnd\AppHostSupport_Tests.cs (7)
194var childHandshake = new Handshake(options); 197var parentFixedHandshake = new Handshake(options); 206var parentBrokenHandshake = new Handshake(options, externalPath); 240var symlinkHandshake = new Handshake(options, symlinkDir); 243var realHandshake = new Handshake(options, realDir); 257var parentFixed = new Handshake(options, consistentDir); 258var childDefault = new Handshake(options);
BackEnd\UnixNodeReuseFixes_Tests.cs (3)
22var handshake = new Handshake(HandshakeOptions.NodeReuse); 36var h1 = new Handshake(HandshakeOptions.NodeReuse); 37var h2 = new Handshake(HandshakeOptions.NodeReuse);