private void printMessage(MwnpMessage message) { logStream.Write("Message sent from {0} to {1} - \r\n", message.getSenderId(), message.getReceiverId()); logStream.WriteLine(message); }
private void printMessage(MwnpMessage message) { (logStream ?? Console.Out).Write("Message received from {0} intended for {1} - \r\n", message.getSenderId(), message.getReceiverId()); (logStream ?? Console.Out).WriteLine(message.ToString()); }