示例#1
0
 public override void Register(Partecipant partecipant)
 {
     if (!_partecipants.ContainsValue(partecipant))
     {
         _partecipants[partecipant.Name] = partecipant;
     }
     partecipant.Chatroom = this;
 }
示例#2
0
        public override void Send(string from, string to, string message)
        {
            Partecipant partecipant = _partecipants[to];

            if (partecipant != null)
            {
                partecipant.Receive(from, message);
            }
        }
示例#3
0
 public abstract void Register(Partecipant partecipant);