45 references to CommunicationsUtilities
Microsoft.Build.Tasks.Core (45)
AssemblyDependency\Node\OutOfProcRarClient.cs (1)
46CommunicationsUtilities.Trace("Initialized new RAR client.");
AssemblyDependency\Node\OutOfProcRarNode.cs (4)
64CommunicationsUtilities.Trace("Shutting down with reason: {0}"); 68CommunicationsUtilities.Trace("Shutting down with reason: {0}, and exception: {1}", shutdownReason, shutdownException); 147CommunicationsUtilities.Trace("{0} RAR endpoints started.", endpoints.Length); 156CommunicationsUtilities.Trace("All endpoints successfully stopped. Exiting.");
AssemblyDependency\Node\OutOfProcRarNodeEndpoint.cs (7)
46CommunicationsUtilities.Trace("({0}) Starting RAR endpoint.", _endpointId); 57CommunicationsUtilities.Trace("({0}) RAR endpoint stopped due to cancellation.", _endpointId); 80CommunicationsUtilities.Trace("({0}) Received request.", _endpointId); 88CommunicationsUtilities.Trace("({0}) Executing RAR...", _endpointId); 98CommunicationsUtilities.Trace("({0}) Completed RAR request.", _endpointId); 104CommunicationsUtilities.Trace("({0}) RAR client disconnected.", _endpointId); 114CommunicationsUtilities.Trace("({0}) Exception while executing RAR request: {1}", _endpointId, e);
AssemblyDependency\ResolveAssemblyReference.cs (1)
3289CommunicationsUtilities.Trace("RAR out-of-proc connection failed, failing back to in-proc. Exception: {0}", ex);
CommunicationsUtilities.cs (19)
200const int handshakeVersion = (int)CommunicationsUtilities.handshakeVersion; 202CommunicationsUtilities.Trace("Building handshake for node type {0}, (version {1}): options {2}.", nodeType, handshakeVersion, options); 208int salt = CommunicationsUtilities.GetHashCode($"{handshakeSalt}{toolsDirectory}"); 210CommunicationsUtilities.Trace("Handshake salt is {0}", handshakeSalt); 211CommunicationsUtilities.Trace("Tools directory root is {0}", toolsDirectory); 261CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.Options), 262CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.Salt), 263CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMajor), 264CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMinor), 265CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionBuild), 266CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionPrivate), 267CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.SessionId)); 271public virtual byte? ExpectedVersionInFirstByte => CommunicationsUtilities.handshakeVersion; 289CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.Options), 290CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.Salt), 291CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMajor), 292CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMinor), 293CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionBuild), 294CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionPrivate));
NodePipeClient.cs (4)
40CommunicationsUtilities.Trace("Attempting connect to pipe {0} with timeout {1} ms", PipeName, timeout); 53CommunicationsUtilities.Trace("Successfully connected to pipe {0}...!", PipeName); 83CommunicationsUtilities.Trace("Writing handshake part {0} ({1}) to pipe {2}", component.Key, component.Value, PipeName); 90CommunicationsUtilities.Trace("Reading handshake from pipe {0}", PipeName);
NodePipeServer.cs (9)
100int waitTimeRemaining = Math.Max(0, CommunicationsUtilities.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds); 116CommunicationsUtilities.Trace("Waiting for connection {0} ms...", waitTimeRemaining); 127CommunicationsUtilities.Trace("Connection timed out waiting a host to contact us. Exiting comm thread."); 131CommunicationsUtilities.Trace("Parent started connecting. Reading handshake from parent"); 150CommunicationsUtilities.Trace("Client connection failed but we will wait for another connection. Exception: {0}", e.Message); 165CommunicationsUtilities.Trace("Client connection failed. Exiting comm thread. {0}", e); 210_pipeServer.TryReadIntForHandshake(byteToAccept: index == 0 ? CommunicationsUtilities.handshakeVersion : null, 218CommunicationsUtilities.Trace("Handshake failed. Received {0} from host not {1}. Probably the host is a different MSBuild build.", handshakePart, component.Value); 239CommunicationsUtilities.Trace("Successfully connected to parent.");