49 references to CommunicationsUtilities
Microsoft.Build.Tasks.Core (49)
AssemblyDependency\Node\OutOfProcRarClient.cs (1)
46CommunicationsUtilities.Trace("Initialized new RAR client.");
AssemblyDependency\Node\OutOfProcRarNode.cs (4)
65CommunicationsUtilities.Trace("Shutting down with reason: {0}"); 69CommunicationsUtilities.Trace("Shutting down with reason: {0}, and exception: {1}", shutdownReason, shutdownException); 167CommunicationsUtilities.Trace("{0} RAR endpoints started.", _maxNumberOfConcurrentTasks); 176CommunicationsUtilities.Trace("All endpoints successfully stopped. Exiting.");
AssemblyDependency\Node\OutOfProcRarNodeEndpoint.cs (6)
37CommunicationsUtilities.Trace("({0}) Starting RAR endpoint.", _endpointId); 48CommunicationsUtilities.Trace("({0}) RAR endpoint stopped due to cancellation.", _endpointId); 61CommunicationsUtilities.Trace("({0}) Received RAR request.", _endpointId); 72CommunicationsUtilities.Trace("({0}) RAR client disconnected.", _endpointId); 86CommunicationsUtilities.Trace("({0}) Completed RAR request.", _endpointId); 90CommunicationsUtilities.Trace("({0}) Exception while executing RAR request: {1}", _endpointId, e);
AssemblyDependency\ResolveAssemblyReference.cs (2)
3261CommunicationsUtilities.Trace("RAR out-of-proc test connection completed. Executing task in-proc."); 3267CommunicationsUtilities.Trace("RAR out-of-proc connection failed, failing back to in-proc. Exception: {0}", ex);
CommunicationsUtilities.cs (21)
101const int handshakeVersion = (int)CommunicationsUtilities.handshakeVersion; 106CommunicationsUtilities.Trace("Building handshake for node type {0}, (version {1}): options {2}.", nodeType, handshakeVersion, options); 109CommunicationsUtilities.Trace("Handshake salt is {0}", handshakeSalt); 111CommunicationsUtilities.Trace("Tools directory root is {0}", toolsDirectory); 112salt = CommunicationsUtilities.GetHashCode($"{handshakeSalt}{toolsDirectory}"); 137CommunicationsUtilities.AvoidEndOfHandshakeSignal(options), 138CommunicationsUtilities.AvoidEndOfHandshakeSignal(salt), 139CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionMajor), 140CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionMinor), 141CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionBuild), 142CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionPrivate), 143CommunicationsUtilities.AvoidEndOfHandshakeSignal(sessionId) 149public virtual byte? ExpectedVersionInFirstByte => CommunicationsUtilities.handshakeVersion; 170CommunicationsUtilities.AvoidEndOfHandshakeSignal(options), 171CommunicationsUtilities.AvoidEndOfHandshakeSignal(salt), 172CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionMajor), 173CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionMinor), 174CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionBuild), 175CommunicationsUtilities.AvoidEndOfHandshakeSignal(fileVersionPrivate), 511CommunicationsUtilities.Trace("Handshake failed on part {0}. Probably the client is a different MSBuild build.", valueRead); 515CommunicationsUtilities.Trace("Expected end of handshake signal but received {0}. Probably the host is a different MSBuild build.", valueRead);
NodePipeClient.cs (5)
40CommunicationsUtilities.Trace("Attempting connect to pipe {0} with timeout {1} ms", PipeName, timeout); 52CommunicationsUtilities.Trace("Successfully connected to pipe {0}...!", PipeName); 66CommunicationsUtilities.Trace("The remote pipe owner {0} does not match {1}", remoteOwner.Value, identifier.Value); 79CommunicationsUtilities.Trace("Writing handshake part {0} ({1}) to pipe {2}", i, HandshakeComponents[i], PipeName); 86CommunicationsUtilities.Trace("Reading handshake from pipe {0}", PipeName);
NodePipeServer.cs (10)
95int waitTimeRemaining = Math.Max(0, CommunicationsUtilities.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds); 107CommunicationsUtilities.Trace("Waiting for connection {0} ms...", waitTimeRemaining); 112CommunicationsUtilities.Trace("Connection timed out waiting a host to contact us. Exiting comm thread."); 116CommunicationsUtilities.Trace("Parent started connecting. Reading handshake from parent"); 135CommunicationsUtilities.Trace("Client connection failed but we will wait for another connection. Exception: {0}", e.Message); 150CommunicationsUtilities.Trace("Client connection failed. Exiting comm thread. {0}", e); 194int handshakePart = _pipeServer.ReadIntForHandshake(byteToAccept: i == 0 ? CommunicationsUtilities.handshakeVersion : null); 199CommunicationsUtilities.Trace("Handshake failed. Received {0} from host not {1}. Probably the host is a different MSBuild build.", handshakePart, HandshakeComponents[i]); 212CommunicationsUtilities.Trace("Successfully connected to parent."); 230CommunicationsUtilities.Trace("Handshake failed. Host user is {0} but we were created by {1}.", (clientIdentity == null) ? "<unknown>" : clientIdentity.Name, currentIdentity.Name);