private IList <ContactInfoForLinking> QueryPersonContacts(MailboxSession mailboxSession, PersonId personId) { List <ContactInfoForLinking> list = new List <ContactInfoForLinking>(); AllPersonContactsEnumerator allPersonContactsEnumerator = AllPersonContactsEnumerator.Create(mailboxSession, personId, ContactInfoForLinking.Properties); foreach (IStorePropertyBag propertyBag in allPersonContactsEnumerator) { base.PerformanceTracker.IncrementContactsRead(); list.Add(ContactInfoForLinkingFromPropertyBag.Create(mailboxSession, propertyBag)); } return(list); }
protected ContactInfoForLinking CreateContactInfoForLinking(IStorePropertyBag propertyBag) { this.performanceTracker.IncrementContactsRead(); return(ContactInfoForLinkingFromPropertyBag.Create(this.MailboxSession, propertyBag)); }