Exemple #1
0
            public async Task <int> ReceiveMessageAsync(string message)
            {
                using (ConsoleColorScope.SetForeground(ConsoleColor.Green))
                {
                    Console.WriteLine("\n!! SERVER Received message from a client: " + message);
                }

                _messagesReceived++;
                return(_messagesReceived);
            }
Exemple #2
0
 public async Task ReceiveMessageAsync(string message)
 {
     using (ConsoleColorScope.SetForeground(ConsoleColor.Green))
     {
         Console.WriteLine("\n!! SERVER Received message from a client: " + message);
     }
     _messagesReceived++;
     foreach (var r in _respondeeList)
     {
         r.ResponseFromServerFork(_messagesReceived);
     }
 }