47 references to CommunicationsUtilities
Microsoft.Build.Tasks.Core (47)
AssemblyDependency\Node\OutOfProcRarClient.cs (1)
47CommunicationsUtilities.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)
47CommunicationsUtilities.Trace("({0}) Starting RAR endpoint.", _endpointId); 58CommunicationsUtilities.Trace("({0}) RAR endpoint stopped due to cancellation.", _endpointId); 87CommunicationsUtilities.Trace("({0}) Received request.", _endpointId); 95CommunicationsUtilities.Trace("({0}) Executing RAR...", _endpointId); 107CommunicationsUtilities.Trace("({0}) Completed RAR request.", _endpointId); 113CommunicationsUtilities.Trace("({0}) RAR client disconnected.", _endpointId); 123CommunicationsUtilities.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)
274const int handshakeVersion = (int)CommunicationsUtilities.handshakeVersion; 276CommunicationsUtilities.Trace("Building handshake for node type {0}, (version {1}): options {2}.", nodeType, handshakeVersion, options); 281int salt = CommunicationsUtilities.GetHashCode($"{handshakeSalt}{toolsDirectory}"); 283CommunicationsUtilities.Trace("Handshake salt is {0}", handshakeSalt); 284CommunicationsUtilities.Trace("Tools directory root is {0}", toolsDirectory); 334CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.Options), 335CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.Salt), 336CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMajor), 337CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMinor), 338CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionBuild), 339CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionPrivate), 340CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.SessionId)); 344public virtual byte? ExpectedVersionInFirstByte => CommunicationsUtilities.handshakeVersion; 362CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.Options), 363CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.Salt), 364CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMajor), 365CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMinor), 366CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionBuild), 367CommunicationsUtilities.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionPrivate));
NodePipeClient.cs (5)
40CommunicationsUtilities.Trace("Attempting connect to pipe {0} with timeout {1} ms", PipeName, timeout); 53CommunicationsUtilities.Trace("Successfully connected to pipe {0}...!", PipeName); 70CommunicationsUtilities.Trace("The remote pipe owner {0} does not match {1}", remoteOwner.Value, identifier.Value); 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 (10)
94int waitTimeRemaining = Math.Max(0, CommunicationsUtilities.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds); 104CommunicationsUtilities.Trace("Waiting for connection {0} ms...", waitTimeRemaining); 115CommunicationsUtilities.Trace("Connection timed out waiting a host to contact us. Exiting comm thread."); 119CommunicationsUtilities.Trace("Parent started connecting. Reading handshake from parent"); 138CommunicationsUtilities.Trace("Client connection failed but we will wait for another connection. Exception: {0}", e.Message); 153CommunicationsUtilities.Trace("Client connection failed. Exiting comm thread. {0}", e); 197_pipeServer.TryReadIntForHandshake(byteToAccept: index == 0 ? CommunicationsUtilities.handshakeVersion : null, 205CommunicationsUtilities.Trace("Handshake failed. Received {0} from host not {1}. Probably the host is a different MSBuild build.", handshakePart, component.Value); 226CommunicationsUtilities.Trace("Successfully connected to parent."); 249CommunicationsUtilities.Trace("Handshake failed. Host user is {0} but we were created by {1}.", (clientIdentity == null) ? "<unknown>" : clientIdentity.Name, currentIdentity.Name);