49 references to CommunicationsUtilities
MSBuild (49)
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);
124
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(options),
125
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(salt),
126
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionMajor),
127
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionMinor),
128
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionBuild),
129
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionPrivate),
130
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(sessionId)
136
public virtual byte? ExpectedVersionInFirstByte =>
CommunicationsUtilities
.handshakeVersion;
157
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(options),
158
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(salt),
159
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionMajor),
160
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionMinor),
161
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionBuild),
162
CommunicationsUtilities
.AvoidEndOfHandshakeSignal(fileVersionPrivate),
492
CommunicationsUtilities
.Trace("Handshake failed on part {0}. Probably the client is a different MSBuild build.", valueRead);
496
CommunicationsUtilities
.Trace("Expected end of handshake signal but received {0}. Probably the host is a different MSBuild build.", valueRead);
NodeEndpointOutOfProcBase.cs (21)
274
CommunicationsUtilities
.Trace("Changing link status from {0} to {1}", _status.ToString(), newStatus.ToString());
365
int waitTimeRemaining = Math.Max(0,
CommunicationsUtilities
.NodeConnectionTimeout - (int)usedWaitTime.TotalMilliseconds);
376
CommunicationsUtilities
.Trace("Waiting for connection {0} ms...", waitTimeRemaining);
381
CommunicationsUtilities
.Trace("Connection timed out waiting a host to contact us. Exiting comm thread.");
386
CommunicationsUtilities
.Trace("Parent started connecting. Reading handshake from parent");
402
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 */
411
CommunicationsUtilities
.Trace("Handshake failed. Received {0} from host not {1}. Probably the host is a different MSBuild build.", handshakePart, handshakeComponents[i]);
426
CommunicationsUtilities
.Trace("Successfully connected to parent.");
453
CommunicationsUtilities
.Trace("Client connection failed but we will wait for another connection. Exception: {0}", e.Message);
475
CommunicationsUtilities
.Trace("Client connection failed. Exiting comm thread. {0}", e);
492
CommunicationsUtilities
.Trace("Ending read loop");
521
CommunicationsUtilities
.Trace("Entering read loop.");
526
Task<int> readTask =
CommunicationsUtilities
.ReadAsync(localReadPipe, headerByte, headerByte.Length);
561
CommunicationsUtilities
.Trace("Exception reading from server. {0}", e);
575
CommunicationsUtilities
.Trace("Parent disconnected gracefully.");
582
CommunicationsUtilities
.Trace("Parent disconnected abruptly.");
588
CommunicationsUtilities
.Trace("Incomplete header read from server. {0} of {1} bytes read", bytesRead, headerByte.Length);
605
CommunicationsUtilities
.Trace("Exception while deserializing packet {0}: {1}", packetType, e);
615
readTask =
CommunicationsUtilities
.ReadAsync(localReadPipe, headerByte, headerByte.Length);
654
CommunicationsUtilities
.Trace("Exception while serializing packets: {0}", e);
663
CommunicationsUtilities
.Trace("Disconnecting voluntarily");
NodeEndpointOutOfProcTaskHost.cs (1)
33
return new Handshake(
CommunicationsUtilities
.GetHandshakeOptions(taskHost: true));
OutOfProcTaskHostNode.cs (5)
641
_savedEnvironment =
CommunicationsUtilities
.GetEnvironmentVariables();
830
CommunicationsUtilities
.SetEnvironment(_savedEnvironment);
955
IDictionary<string, string> currentEnvironment =
CommunicationsUtilities
.GetEnvironmentVariables();
979
CommunicationsUtilities
.SetEnvironment(_savedEnvironment);
1068
CommunicationsUtilities
.SetEnvironment(updatedEnvironment);
XMake.cs (1)
342
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);