public static void OnReceiveMessage(string senderHost, BaseMessage message) { if (ReceivedMessageIds.Contains(message.Id)) { return; } RetranslateMessageToPeers(message); SendStatus(senderHost, message); ProcessReceivedMessage(message); }
private static void ProcessReceivedMessage(BaseMessage message) { ReceivedMessageIds.Add(message.Id); Console.WriteLine($"### Incoming message :: '{message}'"); }
private static void ProcessMessageBeforeSend(BaseMessage message) { ReceivedMessageIds.Add(message.Id); }