public Task <CustomEntityRenderDetails> AsRenderDetailsAsync(int pageId, int customEntityVersionId)
        {
            var query = new GetCustomEntityRenderDetailsByIdQuery()
            {
                CustomEntityId        = _customEntityId,
                PageId                = pageId,
                PublishStatus         = PublishStatusQuery.SpecificVersion,
                CustomEntityVersionId = customEntityVersionId
            };

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }
        public IContentRepositoryQueryContext <CustomEntityRenderDetails> AsRenderDetails(int pageId, int customEntityVersionId)
        {
            var query = new GetCustomEntityRenderDetailsByIdQuery()
            {
                CustomEntityId        = _customEntityId,
                PageId                = pageId,
                PublishStatus         = PublishStatusQuery.SpecificVersion,
                CustomEntityVersionId = customEntityVersionId
            };

            return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
        }
        public Task <CustomEntityRenderDetails> AsRenderDetailsAsync(int pageId, PublishStatusQuery?publishStatus = null)
        {
            var query = new GetCustomEntityRenderDetailsByIdQuery()
            {
                CustomEntityId = _customEntityId,
                PageId         = pageId
            };

            if (publishStatus.HasValue)
            {
                query.PublishStatus = publishStatus.Value;
            }

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }
        public IContentRepositoryQueryContext <CustomEntityRenderDetails> AsRenderDetails(int pageId, PublishStatusQuery?publishStatus = null)
        {
            var query = new GetCustomEntityRenderDetailsByIdQuery()
            {
                CustomEntityId = _customEntityId,
                PageId         = pageId
            };

            if (publishStatus.HasValue)
            {
                query.PublishStatus = publishStatus.Value;
            }

            return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
        }
Пример #5
0
 public Task <CustomEntityRenderDetails> GetCustomEntityRenderDetailsByIdAsync(GetCustomEntityRenderDetailsByIdQuery query, IExecutionContext executionContext = null)
 {
     return(_queryExecutor.ExecuteAsync(query, executionContext));
 }
Пример #6
0
 public CustomEntityRenderDetails GetCustomEntityRenderDetailsById(GetCustomEntityRenderDetailsByIdQuery query, IExecutionContext executionContext = null)
 {
     return(_queryExecutor.Execute(query, executionContext));
 }