1 type derived from Handshake
Microsoft.Build (1)
CommunicationsUtilities.cs (1)
346
internal sealed class ServerNodeHandshake :
Handshake
15 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));
92
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)
725
return new NodeLaunchData(GetMSBuildExecutablePathForNonNETRuntimes(hostContext), BuildCommandLineArgs(IsNodeReuseEnabled(hostContext)), new
Handshake
(hostContext));
767
Handshake handshake = new
Handshake
(hostContext);
Microsoft.Build.Engine.UnitTests (10)
BackEnd\AppHostSupport_Tests.cs (7)
194
var childHandshake = new
Handshake
(options);
197
var parentFixedHandshake = new
Handshake
(options);
206
var parentBrokenHandshake = new
Handshake
(options, externalPath);
240
var symlinkHandshake = new
Handshake
(options, symlinkDir);
243
var realHandshake = new
Handshake
(options, realDir);
257
var parentFixed = new
Handshake
(options, consistentDir);
258
var childDefault = new
Handshake
(options);
BackEnd\UnixNodeReuseFixes_Tests.cs (3)
22
var handshake = new
Handshake
(HandshakeOptions.NodeReuse);
36
var h1 = new
Handshake
(HandshakeOptions.NodeReuse);
37
var h2 = new
Handshake
(HandshakeOptions.NodeReuse);
46 references to Handshake
Microsoft.Build (36)
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)
92
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)
269
bool nodeReuseRequested =
Handshake
.IsHandshakeOptionEnabled(nodeLaunchData.Handshake.HandshakeOptions, HandshakeOptions.NodeReuse);
562
private string GetProcessesToIgnoreKey(
Handshake
hostHandshake, int nodeProcessId) =>
749
private Stream TryConnectToProcess(int nodeProcessId, int timeout,
Handshake
handshake, out HandshakeResult result)
804
internal static bool TryConnectToPipeStream(NamedPipeClientStream nodeStream, string pipeName,
Handshake
handshake, int timeout, out HandshakeResult result)
1144
else if (!
Handshake
.IsHandshakeOptionEnabled(_handshakeOptions, HandshakeOptions.CLR2))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (11)
401
ErrorUtilities.VerifyThrowInternalErrorUnreachable(
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost));
402
if (
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2))
433
ErrorUtilities.VerifyThrowInternalErrorUnreachable(
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost));
461
bool isX64 =
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.X64);
462
bool isArm64 =
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.Arm64);
463
bool isCLR2 =
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2);
500
ErrorUtilities.VerifyThrowInternalErrorUnreachable(
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost));
706
if (
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.NET))
734
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.NodeReuse) && !
Handshake
.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.CLR2);
767
Handshake
handshake = new Handshake(hostContext);
BackEnd\Components\Communications\ServerNodeEndpointOutOfProc.cs (3)
13
private readonly
Handshake
_handshake;
22
Handshake
handshake)
32
protected 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
505
if (innerResult.Value !=
Handshake
.PacketVersionFromChildMarker)
INodePacket.cs (2)
383
if (
Handshake
.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.TaskHost) &&
Handshake
.IsHandshakeOptionEnabled(handshakeOptions, HandshakeOptions.NET))
Instance\TaskFactories\TaskHostTask.cs (1)
725
if (
Handshake
.IsHandshakeOptionEnabled(requiredContext, HandshakeOptions.NET))
NodeEndpointOutOfProcBase.cs (7)
284
protected abstract
Handshake
GetHandshake();
409
Handshake
handshake = GetHandshake();
458
_pipeServer.WriteIntForHandshake(
Handshake
.PacketVersionFromChildMarker); // Marker: PacketVersion follows
573
isAllowedMismatch = _versionHandshakeGroup.Contains(component.Key) && component.Value ==
Handshake
.NetTaskHostHandshakeVersion;
602
bool receivedIsX86 = !
Handshake
.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.X64) &&
603
!
Handshake
.IsHandshakeOptionEnabled(receivedNodeType, HandshakeOptions.Arm64);
605
bool expectedIsX64 =
Handshake
.IsHandshakeOptionEnabled(expectedNodeType, HandshakeOptions.X64);
Microsoft.Build.Engine.UnitTests (10)
BackEnd\AppHostSupport_Tests.cs (7)
194
var
childHandshake = new Handshake(options);
197
var
parentFixedHandshake = new Handshake(options);
206
var
parentBrokenHandshake = new Handshake(options, externalPath);
240
var
symlinkHandshake = new Handshake(options, symlinkDir);
243
var
realHandshake = new Handshake(options, realDir);
257
var
parentFixed = new Handshake(options, consistentDir);
258
var
childDefault = new Handshake(options);
BackEnd\UnixNodeReuseFixes_Tests.cs (3)
22
var
handshake = new Handshake(HandshakeOptions.NodeReuse);
36
var
h1 = new Handshake(HandshakeOptions.NodeReuse);
37
var
h2 = new Handshake(HandshakeOptions.NodeReuse);