Exemple #1
0
        public IContentRepositoryQueryContext <ImageAssetDetails> AsDetails()
        {
            var query = new GetImageAssetDetailsByIdQuery(_imageAssetId);

            return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
        }
        public Task <ImageAssetDetails> GetImageAssetDetailsByIdAsync(int imageAssetId, IExecutionContext executionContext = null)
        {
            var query = new GetImageAssetDetailsByIdQuery(imageAssetId);

            return(_queryExecutor.ExecuteAsync(query, executionContext));
        }
        public Task <ImageAssetDetails> AsDetailsAsync()
        {
            var query = new GetImageAssetDetailsByIdQuery(_imageAssetId);

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }