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