1 type derived from Handshake
Microsoft.Build.Framework (1)
BackEnd\ServerNodeHandshake.cs (1)
11internal sealed class ServerNodeHandshake : Handshake
16 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)
753return new NodeLaunchData(GetMSBuildExecutablePathForNonNETRuntimes(hostContext), BuildCommandLineArgs(IsNodeReuseEnabled(hostContext)), new Handshake(hostContext)); 795Handshake handshake = new Handshake(hostContext);
Microsoft.Build.Engine.UnitTests (10)
BackEnd\AppHostSupport_Tests.cs (7)
199var childHandshake = new Handshake(options); 202var parentFixedHandshake = new Handshake(options); 211var parentBrokenHandshake = new Handshake(options, externalPath); 245var symlinkHandshake = new Handshake(options, symlinkDir); 248var realHandshake = new Handshake(options, realDir); 262var parentFixed = new Handshake(options, consistentDir); 263var 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);
MSBuild (1)
NodeEndpointOutOfProcTaskHost.cs (1)
36new(CommunicationsUtilities.GetHandshakeOptions(taskHost: true, taskHostParameters: TaskHostParameters.Empty, nodeReuse: _nodeReuse));
53 references to Handshake
Microsoft.Build (31)
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) => 747private Stream TryConnectToProcess(int nodeProcessId, int timeout, Handshake handshake, out HandshakeResult result) 802internal static bool TryConnectToPipeStream(NamedPipeClientStream nodeStream, string pipeName, Handshake handshake, int timeout, out HandshakeResult result) 1142else if (!Handshake.IsHandshakeOptionEnabled(_handshakeOptions, HandshakeOptions.CLR2))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (11)
418ErrorUtilities.VerifyThrowInternalErrorUnreachable(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost)); 419if (Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2)) 450ErrorUtilities.VerifyThrowInternalErrorUnreachable(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost)); 478bool isX64 = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.X64); 479bool isArm64 = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.Arm64); 480bool isCLR2 = Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2); 517ErrorUtilities.VerifyThrowInternalErrorUnreachable(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost)); 734if (Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.NET)) 762Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.NodeReuse) && !Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2); 795Handshake handshake = new Handshake(hostContext);
BackEnd\Components\Communications\ServerNodeEndpointOutOfProc.cs (3)
13private readonly Handshake _handshake; 22Handshake handshake) 32protected override Handshake GetHandshake()
Instance\TaskFactories\TaskHostTask.cs (1)
797if (Handshake.IsHandshakeOptionEnabled(requiredContext, HandshakeOptions.NET))
NodeEndpointOutOfProcBase.cs (7)
284protected abstract Handshake GetHandshake(); 409Handshake handshake = GetHandshake(); 455_pipeServer.WriteIntForHandshake(Handshake.PacketVersionFromChildMarker); // Marker: PacketVersion follows 570isAllowedMismatch = _versionHandshakeGroup.Contains(component.Key) && component.Value == Handshake.NetTaskHostHandshakeVersion; 596bool receivedIsX86 = !Handshake.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.X64) && 597!Handshake.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.Arm64); 599bool expectedIsX64 = Handshake.IsHandshakeOptionEnabled(expectedNodeType, HandshakeOptions.X64);
Microsoft.Build.Engine.UnitTests (10)
BackEnd\AppHostSupport_Tests.cs (7)
199var childHandshake = new Handshake(options); 202var parentFixedHandshake = new Handshake(options); 211var parentBrokenHandshake = new Handshake(options, externalPath); 245var symlinkHandshake = new Handshake(options, symlinkDir); 248var realHandshake = new Handshake(options, realDir); 262var parentFixed = new Handshake(options, consistentDir); 263var 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);
Microsoft.Build.Framework (5)
BackEnd\CommunicationsUtilities.cs (1)
400if (innerResult.Value != Handshake.PacketVersionFromChildMarker)
BackEnd\Handshake.cs (2)
25/// Initializes a new instance of the <see cref="Handshake"/> class with the specified node type. 36/// Initializes a new instance of the <see cref="Handshake"/> class with the specified node type
BackEnd\NodePacketTypeExtensions.cs (2)
65if (Handshake.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.TaskHost) && Handshake.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.NET))
Microsoft.Build.Tasks.Core (3)
NodePipeBase.cs (1)
61protected NodePipeBase(string pipeName, Handshake handshake)
NodePipeClient.cs (1)
22internal NodePipeClient(string pipeName, Handshake handshake)
NodePipeServer.cs (1)
37internal NodePipeServer(string pipeName, Handshake handshake, int maxNumberOfServerInstances = 1)
MSBuild (4)
NodeEndpointOutOfProcBase.cs (3)
284protected abstract Handshake GetHandshake(); 409Handshake handshake = GetHandshake(); 455_pipeServer.WriteIntForHandshake(Handshake.PacketVersionFromChildMarker); // Marker: PacketVersion follows
NodeEndpointOutOfProcTaskHost.cs (1)
35protected override Handshake GetHandshake() =>