Exemplo n.º 1
0
 private void Publish(ChatLogEntry chatLogEntry)
 {
     foreach (var member in _members.Values)
     {
         member.Tell(new Update {ChatLogEntry = chatLogEntry});
     }
 }
Exemplo n.º 2
0
 private void Handle(Say say)
 {
     _log.Debug("'{0}' said '{1}' in {2}.", Sender.Path, say.Message, _roomName);
     var chatLogEntry = new ChatLogEntry {Who = GetNameBy(Sender), Message = say.Message, On = DateTime.Now};
     _chatLog.Add(chatLogEntry);
     Publish(chatLogEntry);
 }