public Task <CustomEntityVersionPageBlockRenderDetails> AsRenderDetailsAsync(PublishStatusQuery?publishStatusQuery = null)
        {
            var query = new GetCustomEntityVersionPageBlockRenderDetailsByIdQuery(_customEntityBlockId, publishStatusQuery);

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }
Example #2
0
 /// <summary>
 /// Returns data for a specific custom entity page block by it's id. Because
 /// the mapped display model may contain other versioned entities, you can
 /// optionally pass down a PublishStatusQuery to use in the mapping process.
 /// </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 <CustomEntityVersionPageBlockRenderDetails> GetCustomEntityVersionPageBlockRenderDetailsByIdAsync(GetCustomEntityVersionPageBlockRenderDetailsByIdQuery query, IExecutionContext executionContext = null)
 {
     return(_queryExecutor.ExecuteAsync(query, executionContext));
 }
Example #3
0
        public IContentRepositoryQueryContext <CustomEntityVersionPageBlockRenderDetails> AsRenderDetails(PublishStatusQuery?publishStatusQuery = null)
        {
            var query = new GetCustomEntityVersionPageBlockRenderDetailsByIdQuery(_customEntityBlockId, publishStatusQuery);

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