48 references to CommunicationsUtilities
MSBuild (48)
CommunicationsUtilities.cs (21)
94
const int handshakeVersion = (int)
CommunicationsUtilities
.handshakeVersion;
99
CommunicationsUtilities
.Trace("Building handshake for node type {0}, (version {1}): options {2}.", nodeType, handshakeVersion, options);
102
CommunicationsUtilities
.Trace("Handshake salt is " + handshakeSalt);
104
CommunicationsUtilities
.Trace("Tools directory root is " + toolsDirectory);
105
salt =
CommunicationsUtilities
.GetHashCode(handshakeSalt + toolsDirectory);
125
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(options),
126
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(salt),
127
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionMajor),
128
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionMinor),
129
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionBuild),
130
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionPrivate),
131
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(sessionId)
137
public virtual byte? ExpectedVersionInFirstByte =>
CommunicationsUtilities
.handshakeVersion;
158
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(options),
159
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(salt),
160
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionMajor),
161
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionMinor),
162
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionBuild),
163
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionPrivate),
493
CommunicationsUtilities
.Trace("Handshake failed on part {0}. Probably the client is a different MSBuild build.", valueRead);
497
CommunicationsUtilities
.Trace("Expected end of handshake signal but received {0}. Probably the host is a different MSBuild build.", valueRead);
NodeEndpointOutOfProcBase.cs (20)
273
CommunicationsUtilities
.Trace("Changing link status from {0} to {1}", _status.ToString(), newStatus.ToString());
364
int waitTimeRemaining = Math.Max(0,
CommunicationsUtilities
.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds);
371
CommunicationsUtilities
.Trace("Waiting for connection {0} ms...", waitTimeRemaining);
380
CommunicationsUtilities
.Trace("Connection timed out waiting a host to contact us. Exiting comm thread.");
385
CommunicationsUtilities
.Trace("Parent started connecting. Reading handshake from parent");
401
byteToAccept: i == 0 ? (byte?)
CommunicationsUtilities
.handshakeVersion : null /* this will disconnect a < 16.8 host; it expects leading 00 or F5 or 06. 0x00 is a wildcard */
410
CommunicationsUtilities
.Trace("Handshake failed. Received {0} from host not {1}. Probably the host is a different MSBuild build.", handshakePart, handshakeComponents[i]);
425
CommunicationsUtilities
.Trace("Successfully connected to parent.");
438
CommunicationsUtilities
.Trace("Handshake failed. Host user is {0} but we were created by {1}.", (clientIdentity == null) ? "<unknown>" : clientIdentity.Name, currentIdentity.Name);
452
CommunicationsUtilities
.Trace("Client connection failed but we will wait for another connection. Exception: {0}", e.Message);
474
CommunicationsUtilities
.Trace("Client connection failed. Exiting comm thread. {0}", e);
491
CommunicationsUtilities
.Trace("Ending read loop");
520
CommunicationsUtilities
.Trace("Entering read loop.");
563
CommunicationsUtilities
.Trace("Exception reading from server. {0}", e);
577
CommunicationsUtilities
.Trace("Parent disconnected gracefully.");
584
CommunicationsUtilities
.Trace("Parent disconnected abruptly.");
590
CommunicationsUtilities
.Trace("Incomplete header read from server. {0} of {1} bytes read", bytesRead, headerByte.Length);
607
CommunicationsUtilities
.Trace("Exception while deserializing packet {0}: {1}", packetType, e);
664
CommunicationsUtilities
.Trace("Exception while serializing packets: {0}", e);
673
CommunicationsUtilities
.Trace("Disconnecting voluntarily");
NodeEndpointOutOfProcTaskHost.cs (1)
33
return new Handshake(
CommunicationsUtilities
.GetHandshakeOptions(taskHost: true));
OutOfProcTaskHostNode.cs (5)
641
_savedEnvironment =
CommunicationsUtilities
.GetEnvironmentVariables();
831
CommunicationsUtilities
.SetEnvironment(_savedEnvironment);
956
IDictionary<string, string> currentEnvironment =
CommunicationsUtilities
.GetEnvironmentVariables();
980
CommunicationsUtilities
.SetEnvironment(_savedEnvironment);
1069
CommunicationsUtilities
.SetEnvironment(updatedEnvironment);
XMake.cs (1)
345
CommunicationsUtilities
.Trace("Unexpected exception during command line parsing. Can not determine if it is allowed to use Server. Fall back to old behavior. Exception: {0}", ex);