Esempio n. 1
0
 public AutomaticLink(MailboxInfoForLinking mailboxInfo, IExtensibleLogger logger, IContactLinkingPerformanceTracker performanceTracker, IDirectoryPersonSearcher directoryPersonSearcher, IContactStoreForContactLinking contactStoreForContactLinking) : base(mailboxInfo, logger, performanceTracker)
 {
     Util.ThrowOnNullArgument(directoryPersonSearcher, "directoryPersonSearcher");
     Util.ThrowOnNullArgument(contactStoreForContactLinking, "contactStoreForContactLinking");
     Util.ThrowOnNullArgument(performanceTracker, "performanceTracker");
     this.directoryPersonSearcher       = directoryPersonSearcher;
     this.contactStoreForContactLinking = contactStoreForContactLinking;
 }
 private IEnumerable <ContactInfoForLinking> GetOtherContactsEnumeratorForBulk(ContactInfoForLinking contactInfoContactBeingSaved, IContactStoreForContactLinking contactStoreForContactLinking)
 {
     return(contactStoreForContactLinking.GetAllContacts().Take(AutomaticLink.MaximumNumberOfContactsToProcess.Value));
 }
 private IEnumerable <ContactInfoForLinking> GetOtherContactsEnumeratorForCOW(ContactInfoForLinking contactInfoContactBeingSaved, IContactStoreForContactLinking contactStoreForContactLinking)
 {
     return(contactStoreForContactLinking.GetAllContactsPerCriteria(contactInfoContactBeingSaved.EmailAddresses, contactInfoContactBeingSaved.IMAddress));
 }