コード例 #1
0
        public Task <PageRenderDetails> AsRenderDetailsAsync(int pageVersionId)
        {
            var query = new GetPageRenderDetailsByIdQuery(_pageId, PublishStatusQuery.SpecificVersion);

            query.PageVersionId = pageVersionId;

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }
コード例 #2
0
        public IContentRepositoryQueryContext <PageRenderDetails> AsRenderDetails(int pageVersionId)
        {
            var query = new GetPageRenderDetailsByIdQuery(_pageId, PublishStatusQuery.SpecificVersion);

            query.PageVersionId = pageVersionId;

            return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
        }
コード例 #3
0
ファイル: PageRepository.cs プロジェクト: kishea/kteq-cms
 /// <summary>
 /// Gets a projection of a page that contains the data required to render a page, including template
 /// data for all the content-editable regions.
 /// </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 <PageRenderDetails> GetPageRenderDetailsByIdAsync(GetPageRenderDetailsByIdQuery query, IExecutionContext executionContext = null)
 {
     return(_queryExecutor.ExecuteAsync(query, executionContext));
 }
コード例 #4
0
        public Task <PageRenderDetails> AsRenderDetailsAsync(PublishStatusQuery publishStatus)
        {
            var query = new GetPageRenderDetailsByIdQuery(_pageId, publishStatus);

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }
コード例 #5
0
ファイル: PageRepository.cs プロジェクト: yougayuki/cofoundry
 /// <summary>
 /// Gets a page object that contains the data required to render a page, including template
 /// data for all the content-editable sections.
 /// </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 PageRenderDetails GetPageRenderDetails(GetPageRenderDetailsByIdQuery query, IExecutionContext executionContext = null)
 {
     return(_queryExecutor.Execute(query, executionContext));
 }
コード例 #6
0
        public IContentRepositoryQueryContext <PageRenderDetails> AsRenderDetails(PublishStatusQuery publishStatus)
        {
            var query = new GetPageRenderDetailsByIdQuery(_pageId, publishStatus);

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