48 references to CommunicationsUtilities
MSBuild (48)
CommunicationsUtilities.cs (21)
94const int handshakeVersion = (int)CommunicationsUtilities.handshakeVersion; 99CommunicationsUtilities.Trace("Building handshake for node type {0}, (version {1}): options {2}.", nodeType, handshakeVersion, options); 102CommunicationsUtilities.Trace("Handshake salt is " + handshakeSalt); 104CommunicationsUtilities.Trace("Tools directory root is " + toolsDirectory); 105salt = CommunicationsUtilities.GetHashCode(handshakeSalt + toolsDirectory); 124CommunicationsUtilities.AvoidEndOfHandshakeSignal(options), 125CommunicationsUtilities.AvoidEndOfHandshakeSignal(salt), 126CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionMajor), 127CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionMinor), 128CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionBuild), 129CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionPrivate), 130CommunicationsUtilities.AvoidEndOfHandshakeSignal(sessionId) 136public virtual byte? ExpectedVersionInFirstByte => CommunicationsUtilities.handshakeVersion; 157CommunicationsUtilities.AvoidEndOfHandshakeSignal(options), 158CommunicationsUtilities.AvoidEndOfHandshakeSignal(salt), 159CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionMajor), 160CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionMinor), 161CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionBuild), 162CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionPrivate), 492CommunicationsUtilities.Trace("Handshake failed on part {0}. Probably the client is a different MSBuild build.", valueRead); 496CommunicationsUtilities.Trace("Expected end of handshake signal but received {0}. Probably the host is a different MSBuild build.", valueRead);
NodeEndpointOutOfProcBase.cs (20)
274CommunicationsUtilities.Trace("Changing link status from {0} to {1}", _status.ToString(), newStatus.ToString()); 365int waitTimeRemaining = Math.Max(0, CommunicationsUtilities.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds); 372CommunicationsUtilities.Trace("Waiting for connection {0} ms...", waitTimeRemaining); 381CommunicationsUtilities.Trace("Connection timed out waiting a host to contact us. Exiting comm thread."); 386CommunicationsUtilities.Trace("Parent started connecting. Reading handshake from parent"); 402byteToAccept: i == 0 ? (byte?)CommunicationsUtilities.handshakeVersion : null /* this will disconnect a < 16.8 host; it expects leading 00 or F5 or 06. 0x00 is a wildcard */ 411CommunicationsUtilities.Trace("Handshake failed. Received {0} from host not {1}. Probably the host is a different MSBuild build.", handshakePart, handshakeComponents[i]); 426CommunicationsUtilities.Trace("Successfully connected to parent."); 439CommunicationsUtilities.Trace("Handshake failed. Host user is {0} but we were created by {1}.", (clientIdentity == null) ? "<unknown>" : clientIdentity.Name, currentIdentity.Name); 453CommunicationsUtilities.Trace("Client connection failed but we will wait for another connection. Exception: {0}", e.Message); 475CommunicationsUtilities.Trace("Client connection failed. Exiting comm thread. {0}", e); 492CommunicationsUtilities.Trace("Ending read loop"); 521CommunicationsUtilities.Trace("Entering read loop."); 561CommunicationsUtilities.Trace("Exception reading from server. {0}", e); 575CommunicationsUtilities.Trace("Parent disconnected gracefully."); 582CommunicationsUtilities.Trace("Parent disconnected abruptly."); 588CommunicationsUtilities.Trace("Incomplete header read from server. {0} of {1} bytes read", bytesRead, headerByte.Length); 605CommunicationsUtilities.Trace("Exception while deserializing packet {0}: {1}", packetType, e); 654CommunicationsUtilities.Trace("Exception while serializing packets: {0}", e); 663CommunicationsUtilities.Trace("Disconnecting voluntarily");
NodeEndpointOutOfProcTaskHost.cs (1)
33return new Handshake(CommunicationsUtilities.GetHandshakeOptions(taskHost: true));
OutOfProcTaskHostNode.cs (5)
641_savedEnvironment = CommunicationsUtilities.GetEnvironmentVariables(); 830CommunicationsUtilities.SetEnvironment(_savedEnvironment); 955IDictionary<string, string> currentEnvironment = CommunicationsUtilities.GetEnvironmentVariables(); 979CommunicationsUtilities.SetEnvironment(_savedEnvironment); 1068CommunicationsUtilities.SetEnvironment(updatedEnvironment);
XMake.cs (1)
342CommunicationsUtilities.Trace("Unexpected exception during command line parsing. Can not determine if it is allowed to use Server. Fall back to old behavior. Exception: {0}", ex);