public IEnumerable <T> FindPaged <T>(QueryFilter filter, ObjectId rootId, bool deepSearch, SortBy sortBy, int pageSize) where T : IConfigurable, new()
        {
            RmsTemplateQueryFilter templateQueryFilter = filter as RmsTemplateQueryFilter;

            if (templateQueryFilter == null)
            {
                templateQueryFilter = RmsTemplateQueryFilter.MatchAll;
            }
            try
            {
                RmsClientManager.ADSession = this.adSession;
                foreach (RmsTemplate template in this.AcquireRmsTemplates())
                {
                    if (templateQueryFilter.Match(template))
                    {
                        yield return((T)((object)new RmsTemplatePresentation(template)));
                    }
                }
            }
            finally
            {
                RmsClientManager.ADSession = null;
            }
            yield break;
        }
        // Token: 0x06000B7B RID: 2939 RVA: 0x000246A4 File Offset: 0x000228A4
        IEnumerable <T> IIdentityParameter.GetObjects <T>(ObjectId rootId, IConfigDataProvider session, OptionalIdentityData optionalData, out LocalizedString?notFoundReason)
        {
            QueryFilter queryFilter = new RmsTemplateQueryFilter(this.templateId, this.templateName);

            notFoundReason = new LocalizedString?(Strings.ErrorManagementObjectNotFound(this.ToString()));
            if (optionalData != null && optionalData.AdditionalFilter != null)
            {
                queryFilter = QueryFilter.AndTogether(new QueryFilter[]
                {
                    queryFilter,
                    optionalData.AdditionalFilter
                });
            }
            return(session.FindPaged <T>(queryFilter, rootId, false, null, 0));
        }