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