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); }
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); } }