10 references to HandshakeStatus
Microsoft.Build (2)
BackEnd\Client\MSBuildClient.cs (1)
616if (result.Status is not HandshakeStatus.Timeout && sw.ElapsedMilliseconds < timeoutMilliseconds)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
791result = HandshakeResult.Failure(HandshakeStatus.Undefined, "Check the COMM traces to diagnose the issue with communication.");
Microsoft.Build.Framework (8)
BackEnd\CommunicationsUtilities.cs (4)
460return HandshakeResult.Failure(HandshakeStatus.VersionMismatch, errorMessage); 512result = HandshakeResult.Failure(HandshakeStatus.OldMSBuild, $"Client: rejected old host. Received byte {bytes[0]} instead of {byteToAccept}."); 520result = HandshakeResult.Failure(HandshakeStatus.UnexpectedEndOfStream, "Unexpected end of stream while reading for handshake"); 539result = HandshakeResult.Failure(HandshakeStatus.EndiannessMismatch, $"Failed to convert the handshake to big-endian. {ex.Message}");
BackEnd\HandshakeResult.cs (4)
15public HandshakeStatus Status { get; } 41private HandshakeResult(HandshakeStatus status, int value, string? errorMessage, byte negotiatedPacketVersion = 1) 58=> new(HandshakeStatus.Success, value, errorMessage: null, negotiatedPacketVersion); 68public static HandshakeResult Failure(HandshakeStatus status, string errorMessage)