/// <summary> /// Event handler for the BuildEngine's OnRequestComplete event. /// </summary> private void OnRequestComplete(BuildRequest request, BuildResult result) { if (_nodeEndpoint.LinkStatus == LinkStatus.Active) { _nodeEndpoint.SendData(result); } }
/// <summary> /// Sends data to the specified node. /// </summary> /// <param name="nodeId">The node to which data should be sent.</param> /// <param name="packet">The data to send.</param> public void SendData(int nodeId, INodePacket packet) { ErrorUtilities.VerifyThrowArgumentOutOfRange(nodeId == _inProcNodeId, "node"); ErrorUtilities.VerifyThrowArgumentNull(packet, "packet"); if (null == _inProcNode) { return; } _inProcNodeEndpoint.SendData(packet); }