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