41 references to CommunicationsUtilities
MSBuildTaskHost (41)
BackEnd\NodeEndpointOutOfProcTaskHost.cs (24)
221
CommunicationsUtilities
.Trace($"Changing link status from {_status} to {newStatus}");
253
int waitTimeRemaining = Math.Max(0,
CommunicationsUtilities
.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds);
259
CommunicationsUtilities
.Trace($"Waiting for connection {waitTimeRemaining} ms...");
263
CommunicationsUtilities
.Trace("Connection timed out waiting a host to contact us. Exiting comm thread.");
268
CommunicationsUtilities
.Trace("Parent started connecting. Reading handshake from parent");
274
Handshake handshake = new(
CommunicationsUtilities
.GetHandshakeOptions());
282
byte? byteToAccept = index == 0 ?
CommunicationsUtilities
.HandshakeVersion : null;
288
CommunicationsUtilities
.Trace($"Handshake failed with error: {result.ErrorMessage}");
293
CommunicationsUtilities
.Trace($"Handshake failed. Received {result.Value} from host for {component.Key} but expected {component.Value}. Probably the host is a different MSBuild build.");
313
CommunicationsUtilities
.Trace($"Sent PacketVersion: {NodePacketTypeExtensions.PacketVersion}");
316
CommunicationsUtilities
.Trace("Successfully connected to parent.");
329
CommunicationsUtilities
.Trace($"Handshake failed. Host user is {clientIdentityName} but we were created by {currentIdentity.Name}.");
343
CommunicationsUtilities
.Trace($"Client connection failed but we will wait for another connection. Exception: {e.Message}");
366
CommunicationsUtilities
.Trace($"Client connection failed. Exiting comm thread. {e}");
385
CommunicationsUtilities
.Trace("Ending read loop");
411
CommunicationsUtilities
.Trace($"Handshake failed. Received {handshakePart} from host for {component.Key} but expected {component.Value}. Probably the host is a different MSBuild build.");
431
CommunicationsUtilities
.Trace("Entering read loop.");
461
CommunicationsUtilities
.Trace($"Exception reading from server. {e}");
475
CommunicationsUtilities
.Trace("Parent disconnected gracefully.");
483
CommunicationsUtilities
.Trace("Parent disconnected abruptly.");
489
CommunicationsUtilities
.Trace($"Incomplete header read from server. {bytesRead} of {headerByte.Length} bytes read");
521
CommunicationsUtilities
.Trace($"Exception while deserializing packet {packetType}: {e}");
569
CommunicationsUtilities
.Trace($"Exception while serializing packets: {e}");
578
CommunicationsUtilities
.Trace("Disconnecting voluntarily");
CommunicationsUtilities.cs (12)
204
const int handshakeVersion =
CommunicationsUtilities
.HandshakeVersion;
206
CommunicationsUtilities
.Trace($"Building handshake for node type {nodeType}, (version {handshakeVersion}): options {options}.");
212
int salt =
CommunicationsUtilities
.GetHashCode($"{handshakeSalt}{toolsDirectory}");
214
CommunicationsUtilities
.Trace($"Handshake salt is {handshakeSalt}");
215
CommunicationsUtilities
.Trace($"Tools directory root is {toolsDirectory}");
237
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.Options),
238
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.Salt),
239
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMajor),
240
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionMinor),
241
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionBuild),
242
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.FileVersionPrivate),
243
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(_handshakeComponents.SessionId));
OutOfProcTaskHostNode.cs (5)
355
_savedEnvironment =
CommunicationsUtilities
.GetEnvironmentVariables();
540
CommunicationsUtilities
.SetEnvironment(_savedEnvironment);
650
Dictionary<string, string?> currentEnvironment =
CommunicationsUtilities
.GetEnvironmentVariables();
667
CommunicationsUtilities
.SetEnvironment(_savedEnvironment);
745
CommunicationsUtilities
.SetEnvironment(updatedEnvironment);