public override IEnumerable <string> GetFullSyncTenants() { QueryFilter filter = this.RetrieveFullSyncTenantsSearchFilter(); return(from cu in PartitionDataAggregator.FindTenantCookieContainers(filter) select cu.ExternalDirectoryOrganizationId); }
protected override IEnumerable <MsoTenantCookieContainer> GetPagedData() { if (this.Identity == null) { QueryFilter queryFilter = QueryFilter.OrTogether(new QueryFilter[] { new ExistsFilter(ExchangeConfigurationUnitSchema.MsoForwardSyncNonRecipientCookie), new ExistsFilter(ExchangeConfigurationUnitSchema.MsoForwardSyncRecipientCookie) }); QueryFilter filter = QueryFilter.AndTogether(new QueryFilter[] { queryFilter, new ComparisonFilter(ComparisonOperator.NotEqual, ExchangeConfigurationUnitSchema.OrganizationStatus, OrganizationStatus.ReadyForRemoval), new ComparisonFilter(ComparisonOperator.NotEqual, ExchangeConfigurationUnitSchema.OrganizationStatus, OrganizationStatus.SoftDeleted), new ComparisonFilter(ComparisonOperator.NotEqual, ExchangeConfigurationUnitSchema.OrganizationStatus, OrganizationStatus.PendingRemoval) }); return(PartitionDataAggregator.FindTenantCookieContainers(filter)); } return(base.GetPagedData()); }