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);
31 references to HandshakeResult
Microsoft.Build (9)
BackEnd\Client\MSBuildClient.cs (1)
777HandshakeResult result;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (8)
188Stream nodeStream = TryConnectToProcess(nodeProcess.Id, timeout, NodeProviderOutOfProc.GetHandshake(nodeReuse, false), out HandshakeResult result); 362HandshakeResult result; 466Stream nodeStream = TryConnectToProcess(msbuildProcess.Id, TimeoutForNewNodeCreation, nodeLaunchData.Handshake, out HandshakeResult result); 885private Stream TryConnectToProcess(int nodeProcessId, int timeout, Handshake handshake, out HandshakeResult result) 929result = HandshakeResult.Failure(HandshakeStatus.Undefined, "Check the COMM traces to diagnose the issue with communication."); 940internal static bool TryConnectToPipeStream(NamedPipeClientStream nodeStream, string pipeName, Handshake handshake, int timeout, out HandshakeResult result) 974out HandshakeResult innerResult)) 978result = HandshakeResult.Success(0, innerResult.NegotiatedPacketVersion);
Microsoft.Build.Framework (19)
BackEnd\CommunicationsUtilities.cs (12)
402out HandshakeResult result) 411out HandshakeResult innerResult)) 432out HandshakeResult versionResult)) 461result = HandshakeResult.Success(0, negotiatedPacketVersion); 471private static HandshakeResult CreateVersionMismatchResult(bool isProvider, int receivedValue) 479return HandshakeResult.Failure(HandshakeStatus.VersionMismatch, errorMessage); 492out HandshakeResult result) 515result = HandshakeResult.Failure(HandshakeStatus.Timeout, $"Did not receive return handshake in {timeout}ms"); 531result = HandshakeResult.Failure(HandshakeStatus.OldMSBuild, $"Client: rejected old host. Received byte {bytes[0]} instead of {byteToAccept}."); 539result = HandshakeResult.Failure(HandshakeStatus.UnexpectedEndOfStream, "Unexpected end of stream while reading for handshake"); 554result = HandshakeResult.Success(BitConverter.ToInt32(bytes, 0 /* start index */)); 558result = 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. 57public static HandshakeResult Success(int value = 0, byte negotiatedPacketVersion = 1) 66/// A new <see cref="HandshakeResult"/> instance representing a failed operation. 68public static HandshakeResult Failure(HandshakeStatus status, string errorMessage)
BackEnd\NodeEndpointOutOfProcBase.cs (2)
416out HandshakeResult result)) 439_pipeServer.TryReadEndOfHandshakeSignal(false, ClientConnectTimeout, out HandshakeResult _)) /* wait a long time for the handshake from this side */
Microsoft.Build.Tasks.Core (3)
AssemblyDependency\Node\NodePipeClient.cs (1)
92return _pipeClient.TryReadEndOfHandshakeSignal(true, timeout, out HandshakeResult _);
AssemblyDependency\Node\NodePipeServer.cs (2)
201out HandshakeResult handshakePart)) 224out HandshakeResult _))