public Task <PageRenderSummary> AsRenderSummaryAsync(int pageVersionId)
        {
            var query = new GetPageRenderSummaryByIdQuery(_pageId, PublishStatusQuery.SpecificVersion);

            query.PageVersionId = pageVersionId;

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }
        public IContentRepositoryQueryContext <PageRenderSummary> AsRenderSummary(int pageVersionId)
        {
            var query = new GetPageRenderSummaryByIdQuery(_pageId, PublishStatusQuery.SpecificVersion);

            query.PageVersionId = pageVersionId;

            return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
        }
Beispiel #3
0
 /// <summary>
 /// Gets a page PageRenderSummary projection by id, which is
 /// a lighter weight projection designed for rendering to a site when the
 /// templates, region and block data is not required. The result is
 /// version-sensitive and defaults to returning published versions only, but
 /// this behavior can be controlled by the publishStatus query property.
 /// </summary>
 /// <param name="query">Query parameters</param>
 /// <param name="executionContext">Optional execution context to use when executing the query. Useful if you need to temporarily elevate your permission level.</param>
 public Task <PageRenderSummary> GetPageRenderDetailsByIdAsync(GetPageRenderSummaryByIdQuery query, IExecutionContext executionContext = null)
 {
     return(_queryExecutor.ExecuteAsync(query, executionContext));
 }
        public Task <PageRenderSummary> AsRenderSummaryAsync(PublishStatusQuery publishStatus)
        {
            var query = new GetPageRenderSummaryByIdQuery(_pageId, publishStatus);

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }
        public IContentRepositoryQueryContext <PageRenderSummary> AsRenderSummary(PublishStatusQuery publishStatus)
        {
            var query = new GetPageRenderSummaryByIdQuery(_pageId, publishStatus);

            return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
        }