1 type derived from Handshake
Microsoft.Build.Framework (1)
BackEnd\ServerNodeHandshake.cs (1)
12
internal sealed class ServerNodeHandshake :
Handshake
6 instantiations of Handshake
Microsoft.Build (5)
BackEnd\Components\Communications\NodeEndpointOutOfProc.cs (1)
43
return new
Handshake
(handshakeOptions);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
73
return new
Handshake
(CommunicationsUtilities.GetHandshakeOptions(taskHost: false, taskHostParameters: TaskHostParameters.Empty, architectureFlagToSet: XMakeAttributes.GetCurrentMSBuildArchitecture(), nodeReuse: enableNodeReuse, lowPriority: enableLowPriority));
91
Handshake 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)
962
return new NodeLaunchData(GetMSBuildExecutablePathForNonNETRuntimes(hostContext), BuildCommandLineArgs(IsNodeReuseEnabled(hostContext)), new
Handshake
(hostContext));
1004
Handshake handshake = new
Handshake
(hostContext);
MSBuild (1)
NodeEndpointOutOfProcTaskHost.cs (1)
36
new
(CommunicationsUtilities.GetHandshakeOptions(taskHost: true, taskHostParameters: TaskHostParameters.Empty, nodeReuse: _nodeReuse));
56 references to Handshake
Microsoft.Build (38)
BackEnd\Components\Communications\INodeLauncher.cs (1)
27
Handshake
? Handshake = null,
BackEnd\Components\Communications\NodeEndpointOutOfProc.cs (1)
35
protected override
Handshake
GetHandshake()
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
70
internal static
Handshake
GetHandshake(bool enableNodeReuse, bool enableLowPriority)
91
Handshake
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)
265
bool nodeReuseRequested =
Handshake
.IsHandshakeOptionEnabled(nodeLaunchData.Handshake.HandshakeOptions, HandshakeOptions.NodeReuse);
649
private string GetProcessesToIgnoreKey(
Handshake
hostHandshake, int nodeProcessId) =>
829
private Stream TryConnectToProcess(int nodeProcessId, int timeout,
Handshake
handshake, out HandshakeResult result)
884
internal static bool TryConnectToPipeStream(NamedPipeClientStream nodeStream, string pipeName,
Handshake
handshake, int timeout, out HandshakeResult result)
1357
else if (!
Handshake
.IsHandshakeOptionEnabled(_handshakeOptions, HandshakeOptions.CLR2))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (16)
225
&&
Handshake
.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.NodeReuse);
239
if (
Handshake
.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.CLR2))
244
if (
Handshake
.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.NET))
258
bool wantsX64 =
Handshake
.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.X64);
259
bool wantsArm64 =
Handshake
.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.Arm64);
610
Assumed.True(
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost));
611
if (
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2))
642
Assumed.True(
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost));
670
bool isX64 =
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.X64);
671
bool isArm64 =
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.Arm64);
672
bool isCLR2 =
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2);
706
Assumed.True(
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost));
943
if (
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.NET))
971
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.NodeReuse) && !
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2);
1004
Handshake
handshake = new Handshake(hostContext);
BackEnd\Components\Communications\ServerNodeEndpointOutOfProc.cs (3)
13
private readonly
Handshake
_handshake;
22
Handshake
handshake)
32
protected override
Handshake
GetHandshake()
Instance\TaskFactories\TaskHostTask.cs (1)
859
if (
Handshake
.IsHandshakeOptionEnabled(requiredContext, HandshakeOptions.NET))
parent\Shared\NodeEndpointOutOfProcBase.cs (9)
307
protected abstract
Handshake
GetHandshake();
432
Handshake
handshake = GetHandshake();
478
_pipeServer.WriteIntForHandshake(
Handshake
.PacketVersionFromChildMarker); // Marker: PacketVersion follows
573
private bool IsHandshakePartValid(KeyValuePair<string, int> component, int handshakePart, int index,
Handshake
handshake)
600
isAllowedMismatch = _versionHandshakeGroup.Contains(component.Key) && component.Value ==
Handshake
.NetTaskHostHandshakeVersion;
651
bool receivedIsX86 = !
Handshake
.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.X64) &&
652
!
Handshake
.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.Arm64);
654
bool expectedIsX64 =
Handshake
.IsHandshakeOptionEnabled(expectedNodeType, HandshakeOptions.X64);
655
bool expectedIsArm64 =
Handshake
.IsHandshakeOptionEnabled(expectedNodeType, HandshakeOptions.Arm64);
Microsoft.Build.Framework (5)
BackEnd\CommunicationsUtilities.cs (1)
418
if (innerResult.Value !=
Handshake
.PacketVersionFromChildMarker)
BackEnd\Handshake.cs (2)
37
/// Initializes a new instance of the <see cref="
Handshake
"/> class with the specified node type.
48
/// Initializes a new instance of the <see cref="
Handshake
"/> class with the specified node type
BackEnd\NodePacketTypeExtensions.cs (2)
79
if (
Handshake
.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.TaskHost)
80
&& (
Handshake
.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.NET)
Microsoft.Build.Tasks.Core (3)
parent\Shared\NodePipeBase.cs (1)
61
protected NodePipeBase(string pipeName,
Handshake
handshake)
parent\Shared\NodePipeClient.cs (1)
22
internal NodePipeClient(string pipeName,
Handshake
handshake)
parent\Shared\NodePipeServer.cs (1)
37
internal NodePipeServer(string pipeName,
Handshake
handshake, int maxNumberOfServerInstances = 1)
MSBuild (10)
NodeEndpointOutOfProcTaskHost.cs (1)
35
protected override
Handshake
GetHandshake() =>
parent\Shared\NodeEndpointOutOfProcBase.cs (9)
307
protected abstract
Handshake
GetHandshake();
432
Handshake
handshake = GetHandshake();
478
_pipeServer.WriteIntForHandshake(
Handshake
.PacketVersionFromChildMarker); // Marker: PacketVersion follows
573
private bool IsHandshakePartValid(KeyValuePair<string, int> component, int handshakePart, int index,
Handshake
handshake)
600
isAllowedMismatch = _versionHandshakeGroup.Contains(component.Key) && component.Value ==
Handshake
.NetTaskHostHandshakeVersion;
651
bool receivedIsX86 = !
Handshake
.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.X64) &&
652
!
Handshake
.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.Arm64);
654
bool expectedIsX64 =
Handshake
.IsHandshakeOptionEnabled(expectedNodeType, HandshakeOptions.X64);
655
bool expectedIsArm64 =
Handshake
.IsHandshakeOptionEnabled(expectedNodeType, HandshakeOptions.Arm64);