2 instantiations of HandshakeResult
Microsoft.Build.Framework (2)
BackEnd\HandshakeResult.cs (2)
58
=>
new
(HandshakeStatus.Success, value, errorMessage: null, negotiatedPacketVersion);
69
=>
new
(status, 0, errorMessage);
33 references to HandshakeResult
Microsoft.Build (11)
BackEnd\Client\MSBuildClient.cs (1)
625
HandshakeResult
result;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (8)
181
Stream nodeStream = TryConnectToProcess(nodeProcess.Id, timeout, NodeProviderOutOfProc.GetHandshake(nodeReuse, false), out
HandshakeResult
result);
350
Stream nodeStream = TryConnectToProcess(nodeToReuse.Id, 0 /* poll, don't wait for connections */, nodeLaunchData.Handshake, out
HandshakeResult
result);
414
Stream nodeStream = TryConnectToProcess(msbuildProcess.Id, TimeoutForNewNodeCreation, nodeLaunchData.Handshake, out
HandshakeResult
result);
747
private Stream TryConnectToProcess(int nodeProcessId, int timeout, Handshake handshake, out
HandshakeResult
result)
791
result =
HandshakeResult
.Failure(HandshakeStatus.Undefined, "Check the COMM traces to diagnose the issue with communication.");
802
internal static bool TryConnectToPipeStream(NamedPipeClientStream nodeStream, string pipeName, Handshake handshake, int timeout, out
HandshakeResult
result)
836
out
HandshakeResult
innerResult))
840
result =
HandshakeResult
.Success(0, innerResult.NegotiatedPacketVersion);
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (2)
423
out
HandshakeResult
result))
446
_pipeServer.TryReadEndOfHandshakeSignal(false, ClientConnectTimeout, out
HandshakeResult
_)) /* wait a long time for the handshake from this side */
Microsoft.Build.Framework (17)
BackEnd\CommunicationsUtilities.cs (12)
378
out
HandshakeResult
result)
387
out
HandshakeResult
innerResult))
408
out
HandshakeResult
versionResult))
437
result =
HandshakeResult
.Success(0, negotiatedPacketVersion);
447
private static
HandshakeResult
CreateVersionMismatchResult(bool isProvider, int receivedValue)
455
return
HandshakeResult
.Failure(HandshakeStatus.VersionMismatch, errorMessage);
468
out
HandshakeResult
result)
491
result =
HandshakeResult
.Failure(HandshakeStatus.Timeout, $"Did not receive return handshake in {timeout}ms");
507
result =
HandshakeResult
.Failure(HandshakeStatus.OldMSBuild, $"Client: rejected old host. Received byte {bytes[0]} instead of {byteToAccept}.");
515
result =
HandshakeResult
.Failure(HandshakeStatus.UnexpectedEndOfStream, "Unexpected end of stream while reading for handshake");
530
result =
HandshakeResult
.Success(BitConverter.ToInt32(bytes, 0 /* start index */));
534
result =
HandshakeResult
.Failure(HandshakeStatus.EndiannessMismatch, $"Failed to convert the handshake to big-endian. {ex.Message}");
BackEnd\HandshakeResult.cs (5)
35
/// Initializes a new instance of the <see cref="
HandshakeResult
"/> class.
55
/// A new <see cref="
HandshakeResult
"/> instance representing a successful operation.
57
public static
HandshakeResult
Success(int value = 0, byte negotiatedPacketVersion = 1)
66
/// A new <see cref="
HandshakeResult
"/> instance representing a failed operation.
68
public static
HandshakeResult
Failure(HandshakeStatus status, string errorMessage)
Microsoft.Build.Tasks.Core (3)
src\msbuild\src\Shared\NodePipeClient.cs (1)
92
return _pipeClient.TryReadEndOfHandshakeSignal(true, timeout, out
HandshakeResult
_);
src\msbuild\src\Shared\NodePipeServer.cs (2)
201
out
HandshakeResult
handshakePart))
224
out
HandshakeResult
_))
MSBuild (2)
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (2)
423
out
HandshakeResult
result))
446
_pipeServer.TryReadEndOfHandshakeSignal(false, ClientConnectTimeout, out
HandshakeResult
_)) /* wait a long time for the handshake from this side */