Ejemplo n.º 1
0
 private void SetPreSyncLdapPagingCookie(TenantRelocationPagedReader reader)
 {
     if (reader.Cookie == null || reader.Cookie.Length == 0)
     {
         this.PageToken.PreSyncLdapPagingCookie = null;
         return;
     }
     this.PageToken.PreSyncLdapPagingCookie = reader.Cookie;
 }
Ejemplo n.º 2
0
        private TenantRelocationSyncObject[] ReadAllTeantObjectsInPage(int sizeLimit)
        {
            ADSessionSettings adsessionSettings = ADSessionSettings.FromAccountPartitionWideScopeSet(base.RecipientSession.SessionSettings.PartitionId);

            adsessionSettings.IncludeSoftDeletedObjectLinks = true;
            adsessionSettings.IncludeSoftDeletedObjects     = true;
            ITopologyConfigurationSession topologyConfigurationSession = DirectorySessionFactory.Default.CreateTopologyConfigurationSession(true, ConsistencyMode.PartiallyConsistent, adsessionSettings, 375, "ReadAllTeantObjectsInPage", "f:\\15.00.1497\\sources\\dev\\data\\src\\directory\\Sync\\TenantRelocationSync\\TenantRelocationSyncConfiguration.cs");

            topologyConfigurationSession.DomainController          = base.TenantConfigurationSession.DomainController;
            topologyConfigurationSession.LogSizeLimitExceededEvent = false;
            topologyConfigurationSession.UseGlobalCatalog          = false;
            topologyConfigurationSession.UseConfigNC = false;
            TenantRelocationPagedReader tenantRelocationPagedReader = new TenantRelocationPagedReader(topologyConfigurationSession, base.TenantConfigurationSession.SessionSettings.CurrentOrganizationId.OrganizationalUnit, sizeLimit, TenantRelocationSyncConfiguration.BaseProperties, this.PageToken.PreSyncLdapPagingCookie);

            TenantRelocationSyncObject[] nextResultPage = tenantRelocationPagedReader.GetNextResultPage();
            this.SetPreSyncLdapPagingCookie(tenantRelocationPagedReader);
            return(nextResultPage);
        }