public IContentRepositoryQueryContext <PageVersionBlockRenderDetails> AsRenderDetails(PublishStatusQuery?publishStatusQuery = null) { var query = new GetPageVersionBlockRenderDetailsByIdQuery(_pageVersionBlockId, publishStatusQuery); return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository)); }
/// <summary> /// Returns data for a specific block in a page version 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 <PageVersionBlockRenderDetails> GetPageVersionBlockRenderDetailsByIdAsync(GetPageVersionBlockRenderDetailsByIdQuery query, IExecutionContext executionContext = null) { return(_queryExecutor.ExecuteAsync(query, executionContext)); }
public Task <PageVersionBlockRenderDetails> AsRenderDetailsAsync(PublishStatusQuery?publishStatusQuery = null) { var query = new GetPageVersionBlockRenderDetailsByIdQuery(_pageVersionBlockId, publishStatusQuery); return(ExtendableContentRepository.ExecuteQueryAsync(query)); }