public void ShowMessage(User sender, string message) { _writer.WriteLine("{0} [{1}] Sending Message : {2}", DateTime.UtcNow, sender.Name, message); _users .Where(user => user != sender) .ToList() .ForEach(user => _writer.WriteLine("{0} [{1}] Receiving Message: {2}", DateTime.UtcNow, sender.Name, message)); }
public void Add(User user) { _users.Add(user); }