Пример #1
0
        private ParticipantSet RetrieveReplyAllData(IDictionary <RecipientItemType, HashSet <IParticipant> > replyAllTable)
        {
            ParticipantSet participantSet = new ParticipantSet();

            foreach (KeyValuePair <RecipientItemType, HashSet <IParticipant> > keyValuePair in replyAllTable)
            {
                participantSet.UnionWith(keyValuePair.Value);
            }
            return(participantSet);
        }
Пример #2
0
        public void Add(RecipientItemType type, IEnumerable <IParticipant> participants)
        {
            ParticipantSet orCreateParticipantHash = this.GetOrCreateParticipantHash(type);

            orCreateParticipantHash.UnionWith(participants);
        }