Ejemplo n.º 1
0
 // Token: 0x0600086F RID: 2159 RVA: 0x00021EF4 File Offset: 0x000200F4
 public override void ForEachChildContainer(Action <ComplianceItemContainer> containerHandler, Func <ComplianceItemContainer, Exception, bool> exHandler)
 {
     if (this.folder.HasSubfolders)
     {
         QueryResult queryResult = this.folder.FolderQuery(FolderQueryFlags.None, null, null, ExMailboxComplianceItemContainer.FolderDataColumns);
         using (FolderEnumerator folderEnumerator = new FolderEnumerator(queryResult, this.folder, this.folder.GetProperties(ExMailboxComplianceItemContainer.FolderDataColumns)))
         {
             while (folderEnumerator != null && folderEnumerator.MoveNext())
             {
                 for (int i = 0; i < folderEnumerator.Current.Count; i++)
                 {
                     VersionedId versionedId = folderEnumerator.Current[i][0] as VersionedId;
                     if (versionedId != null)
                     {
                         Folder folder = Folder.Bind(this.session, versionedId.ObjectId);
                         if (this.folder.StoreObjectId != folder.StoreObjectId)
                         {
                             using (ExFolderComplianceItemContainer exFolderComplianceItemContainer = new ExFolderComplianceItemContainer(this.session, this, folder))
                             {
                                 try
                                 {
                                     containerHandler(exFolderComplianceItemContainer);
                                 }
                                 catch (Exception arg)
                                 {
                                     exHandler(exFolderComplianceItemContainer, arg);
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Token: 0x06000876 RID: 2166 RVA: 0x00022053 File Offset: 0x00020253
 public ExFolderSearchComplianceItemPagedReader(ExFolderComplianceItemContainer folderContainer) : base(20, null)
 {
     this.folderContainer = folderContainer;
 }