11 references to HandshakeStatus
Microsoft.Build (11)
BackEnd\Client\MSBuildClient.cs (1)
616
if (result.Status is not
HandshakeStatus
.Timeout && sw.ElapsedMilliseconds < timeoutMilliseconds)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
799
result = HandshakeResult.Failure(
HandshakeStatus
.Undefined, "Check the COMM traces to diagnose the issue with communication.");
CommunicationsUtilities.cs (9)
159
public
HandshakeStatus
Status { get; }
185
private HandshakeResult(
HandshakeStatus
status, int value, string errorMessage, byte negotiatedPacketVersion = 1)
199
public static HandshakeResult Success(int value = 0, byte negotiatedPacketVersion = 1) => new(
HandshakeStatus
.Success, value, null, negotiatedPacketVersion);
207
public static HandshakeResult Failure(
HandshakeStatus
status, string errorMessage) => new(status, 0, errorMessage);
562
return HandshakeResult.Failure(
HandshakeStatus
.VersionMismatch, errorMessage);
601
result = HandshakeResult.Failure(
HandshakeStatus
.Timeout, String.Format(CultureInfo.InvariantCulture, "Did not receive return handshake in {0}ms", timeout));
616
result = HandshakeResult.Failure(
HandshakeStatus
.OldMSBuild, String.Format(CultureInfo.InvariantCulture, "Client: rejected old host. Received byte {0} instead of {1}.", bytes[0], byteToAccept));
624
result = HandshakeResult.Failure(
HandshakeStatus
.UnexpectedEndOfStream, String.Format(CultureInfo.InvariantCulture, "Unexpected end of stream while reading for handshake"));
643
result = HandshakeResult.Failure(
HandshakeStatus
.EndiannessMismatch, String.Format(CultureInfo.InvariantCulture, "Failed to convert the handshake to big-endian. {0}", ex.Message));