コード例 #1
0
        public static void OnReceiveMessage(string senderHost, BaseMessage message)
        {
            if (ReceivedMessageIds.Contains(message.Id))
            {
                return;
            }

            RetranslateMessageToPeers(message);
            SendStatus(senderHost, message);
            ProcessReceivedMessage(message);
        }
コード例 #2
0
        private static void ProcessReceivedMessage(BaseMessage message)
        {
            ReceivedMessageIds.Add(message.Id);

            Console.WriteLine($"### Incoming message :: '{message}'");
        }
コード例 #3
0
 private static void ProcessMessageBeforeSend(BaseMessage message)
 {
     ReceivedMessageIds.Add(message.Id);
 }