// Token: 0x06000EEA RID: 3818 RVA: 0x0002B5C8 File Offset: 0x000297C8
        internal override IEnumerable <T> GetObjects <T>(ADObjectId rootId, IDirectorySession session, IDirectorySession subTreeSession, OptionalIdentityData optionalData, out LocalizedString?notFoundReason)
        {
            TaskLogger.LogEnter();
            if (!typeof(T).IsAssignableFrom(typeof(ExtendedSecurityPrincipal)))
            {
                throw new ArgumentException(Strings.ErrorInvalidType(typeof(T).Name), "type");
            }
            if (session == null)
            {
                throw new ArgumentNullException("session");
            }
            IEnumerable <T> result = ExtendedSecurityPrincipalSearchHelper.PerformSearch(new ExtendedSecurityPrincipalSearcher(this.FindObjects), (IConfigDataProvider)session, rootId, (this.IncludeDomainLocalFrom != null) ? this.IncludeDomainLocalFrom.Id : null, this.Types).Cast <T>();

            TaskLogger.LogExit();
            notFoundReason = null;
            return(result);
        }
Exemple #2
0
        protected override IEnumerable <ExtendedSecurityPrincipal> GetPagedData()
        {
            ADObjectId includeDomailLocalFrom = (this.includeDomainLocalFrom != null) ? this.includeDomainLocalFrom.Id : null;

            return(ExtendedSecurityPrincipalSearchHelper.PerformSearch(new ExtendedSecurityPrincipalSearcher(this.FindObjects), base.DataSession, this.RootId as ADObjectId, includeDomailLocalFrom, this.types));
        }