12 references to HandshakeStatus
Microsoft.Build (3)
BackEnd\Client\MSBuildClient.cs (2)
659
if (result.Status is not
HandshakeStatus
.Timeout && sw.ElapsedMilliseconds < timeoutMilliseconds)
669
LogConnectFailureDiagnostics(timeoutMilliseconds, isTimeout: result.Status is
HandshakeStatus
.Timeout, errorMessage: result.ErrorMessage);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
861
result = HandshakeResult.Failure(
HandshakeStatus
.Undefined, "Check the COMM traces to diagnose the issue with communication.");
Microsoft.Build.Framework (9)
BackEnd\CommunicationsUtilities.cs (5)
448
return HandshakeResult.Failure(
HandshakeStatus
.VersionMismatch, errorMessage);
484
result = HandshakeResult.Failure(
HandshakeStatus
.Timeout, $"Did not receive return handshake in {timeout}ms");
500
result = HandshakeResult.Failure(
HandshakeStatus
.OldMSBuild, $"Client: rejected old host. Received byte {bytes[0]} instead of {byteToAccept}.");
508
result = HandshakeResult.Failure(
HandshakeStatus
.UnexpectedEndOfStream, "Unexpected end of stream while reading for handshake");
527
result = HandshakeResult.Failure(
HandshakeStatus
.EndiannessMismatch, $"Failed to convert the handshake to big-endian. {ex.Message}");
BackEnd\HandshakeResult.cs (4)
15
public
HandshakeStatus
Status { get; }
41
private HandshakeResult(
HandshakeStatus
status, int value, string? errorMessage, byte negotiatedPacketVersion = 1)
58
=> new(
HandshakeStatus
.Success, value, errorMessage: null, negotiatedPacketVersion);
68
public static HandshakeResult Failure(
HandshakeStatus
status, string errorMessage)