41 references to CommunicationsUtilities
MSBuildTaskHost (41)
BackEnd\NodeEndpointOutOfProcTaskHost.cs (24)
221CommunicationsUtilities.Trace($"Changing link status from {_status} to {newStatus}"); 253int waitTimeRemaining = Math.Max(0, CommunicationsUtilities.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds); 259CommunicationsUtilities.Trace($"Waiting for connection {waitTimeRemaining} ms..."); 263CommunicationsUtilities.Trace("Connection timed out waiting a host to contact us. Exiting comm thread."); 268CommunicationsUtilities.Trace("Parent started connecting. Reading handshake from parent"); 274Handshake handshake = new(CommunicationsUtilities.GetHandshakeOptions()); 282byte? byteToAccept = index == 0 ? CommunicationsUtilities.HandshakeVersion : null; 288CommunicationsUtilities.Trace($"Handshake failed with error: {result.ErrorMessage}"); 293CommunicationsUtilities.Trace($"Handshake failed. Received {result.Value} from host for {component.Key} but expected {component.Value}. Probably the host is a different MSBuild build."); 313CommunicationsUtilities.Trace($"Sent PacketVersion: {NodePacketTypeExtensions.PacketVersion}"); 316CommunicationsUtilities.Trace("Successfully connected to parent."); 329CommunicationsUtilities.Trace($"Handshake failed. Host user is {clientIdentityName} but we were created by {currentIdentity.Name}."); 343CommunicationsUtilities.Trace($"Client connection failed but we will wait for another connection. Exception: {e.Message}"); 366CommunicationsUtilities.Trace($"Client connection failed. Exiting comm thread. {e}"); 385CommunicationsUtilities.Trace("Ending read loop"); 411CommunicationsUtilities.Trace($"Handshake failed. Received {handshakePart} from host for {component.Key} but expected {component.Value}. Probably the host is a different MSBuild build."); 431CommunicationsUtilities.Trace("Entering read loop."); 461CommunicationsUtilities.Trace($"Exception reading from server. {e}"); 475CommunicationsUtilities.Trace("Parent disconnected gracefully."); 483CommunicationsUtilities.Trace("Parent disconnected abruptly."); 489CommunicationsUtilities.Trace($"Incomplete header read from server. {bytesRead} of {headerByte.Length} bytes read"); 521CommunicationsUtilities.Trace($"Exception while deserializing packet {packetType}: {e}"); 569CommunicationsUtilities.Trace($"Exception while serializing packets: {e}"); 578CommunicationsUtilities.Trace("Disconnecting voluntarily");
CommunicationsUtilities.cs (12)
204const int handshakeVersion = CommunicationsUtilities.HandshakeVersion; 206CommunicationsUtilities.Trace($"Building handshake for node type {nodeType}, (version {handshakeVersion}): options {options}."); 212int salt = CommunicationsUtilities.GetHashCode($"{handshakeSalt}{toolsDirectory}"); 214CommunicationsUtilities.Trace($"Handshake salt is {handshakeSalt}"); 215CommunicationsUtilities.Trace($"Tools directory root is {toolsDirectory}"); 237CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.Options), 238CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.Salt), 239CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMajor), 240CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMinor), 241CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionBuild), 242CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionPrivate), 243CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.SessionId));
OutOfProcTaskHostNode.cs (5)
355_savedEnvironment = CommunicationsUtilities.GetEnvironmentVariables(); 540CommunicationsUtilities.SetEnvironment(_savedEnvironment); 650Dictionary<string, string?> currentEnvironment = CommunicationsUtilities.GetEnvironmentVariables(); 667CommunicationsUtilities.SetEnvironment(_savedEnvironment); 745CommunicationsUtilities.SetEnvironment(updatedEnvironment);