Ejemplo n.º 1
0
 public virtual void UpdateFilterState(SyncOperation syncOperation)
 {
     if (syncOperation.ChangeType == ChangeType.Delete)
     {
         this.entriesInFilter.Remove(syncOperation.Id);
         return;
     }
     try
     {
         try
         {
             bool flag = EvaluatableFilter.Evaluate(this.filter, syncOperation, true);
             if (flag)
             {
                 ServerManifestEntry serverManifestEntry = new ServerManifestEntry(syncOperation.Id);
                 serverManifestEntry.UpdateManifestFromPropertyBag(syncOperation);
                 serverManifestEntry.FirstMessageInConversation = syncOperation.FirstMessageInConversation;
                 this.entriesInFilter[syncOperation.Id]         = serverManifestEntry;
             }
         }
         catch (PropertyErrorException)
         {
             ISyncItem item = syncOperation.GetItem(MailboxSyncProvider.QueryColumns);
             bool      flag = item.IsItemInFilter(this.filter);
             if (flag)
             {
                 ServerManifestEntry serverManifestEntry2 = new ServerManifestEntry(syncOperation.Id);
                 serverManifestEntry2.UpdateManifestFromItem(item);
                 this.entriesInFilter[syncOperation.Id] = serverManifestEntry2;
             }
         }
     }
     catch (ObjectNotFoundException)
     {
     }
 }
Ejemplo n.º 2
0
        public override void UpdateFilterState(SyncOperation syncOperation)
        {
            ServerManifestEntry value = new ServerManifestEntry(syncOperation.Id);

            base.EntriesInFilter[syncOperation.Id] = value;
        }