Exemple #1
0
        private static IEMAPIProp OpenMessage(IResource contact, bool create, bool forceCreate, bool trace)
        {
            IEMAPIProp prop   = null;
            IEFolder   folder = ExportContactDescriptor.GetContactFolder(contact, false);

            if (folder != null)
            {
                bool foo, _newCreated;
                prop = ExportContactDescriptor.OpenMessage(folder, contact, create, forceCreate,
                                                           trace, out _newCreated, out foo);
            }
            return(prop);
        }
Exemple #2
0
 public static bool ClearNeeded(IResource contact)
 {
     lock ( _testedContacts )
     {
         bool tested = _testedContacts.Contains(contact.Id);
         _testedContacts.Add(contact.Id);
         if (!tested)
         {
             if (ExportContactDescriptor.IsClearNeeded(contact))
             {
                 Contact.RemoveFromSync(contact, true);
                 return(true);
             }
         }
     }
     return(false);
 }
Exemple #3
0
 public ExportContactCategoryDescriptor(IResource contact)
 {
     Guard.NullArgument(contact, "contact");
     _contact = contact;
     ExportContactDescriptor.CheckIsContactValid(contact);
 }