Beispiel #1
0
 // Token: 0x06001224 RID: 4644 RVA: 0x00057EF5 File Offset: 0x000560F5
 private static ADObjectId GetSearchRootForSession(IDirectorySession session)
 {
     if (session == null)
     {
         throw new ArgumentNullException("session");
     }
     if (!session.UseConfigNC)
     {
         return(session.GetDomainNamingContext());
     }
     return(session.GetConfigurationNamingContext());
 }
        // Token: 0x06000DBC RID: 3516 RVA: 0x0002905C File Offset: 0x0002725C
        internal override IEnumerable <T> PerformSearch <T>(QueryFilter filter, ADObjectId rootId, IDirectorySession session, bool deepSearch)
        {
            ADObjectId deletedObjectsContainer           = ADSession.GetDeletedObjectsContainer(session.GetDomainNamingContext());
            ADPagedReader <RemovedMailbox> adpagedReader = session.FindPagedDeletedObject <RemovedMailbox>(deletedObjectsContainer, QueryScope.OneLevel, filter, null, 0);

            return((IEnumerable <T>)adpagedReader);
        }
 internal TenantRelocationPagedReader(IDirectorySession session, ADObjectId OrganizationUnitRoot, int pageSize, IEnumerable <PropertyDefinition> properties, byte[] cookie) : base(session, session.GetDomainNamingContext(), QueryScope.SubTree, null, null, pageSize, properties, false)
 {
     base.LdapFilter            = string.Format("(msexchouroot={0})", OrganizationUnitRoot.ToGuidOrDNString());
     base.Cookie                = cookie;
     base.IncludeDeletedObjects = true;
     base.SearchAllNcs          = true;
 }