Exemplo n.º 1
0
        public override void Register(Collegue participant)
        {
            if (!_participants.ContainsValue(participant))
            {
                _participants[participant.Name] = participant;
            }

            participant.Chatroom = this;
        }
Exemplo n.º 2
0
        public override void Send(
            string from, string to, string message)
        {
            Collegue participant = _participants[to];

            if (participant != null)
            {
                participant.Receive(from, message);
            }
        }
Exemplo n.º 3
0
 public abstract void Register(Collegue participant);