public Task <DocumentAssetFile> AsFileAsync()
        {
            var query = new GetDocumentAssetFileByIdQuery(_documentAssetId);

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }
Esempio n. 2
0
        public Task <DocumentAssetFile> GetDocumentAssetFileByIdQueryAsync(int documentAssetId, IExecutionContext executionContext = null)
        {
            var query = new GetDocumentAssetFileByIdQuery(documentAssetId);

            return(_queryExecutor.ExecuteAsync(query, executionContext));
        }
        public IContentRepositoryQueryContext <DocumentAssetFile> AsFile()
        {
            var query = new GetDocumentAssetFileByIdQuery(_documentAssetId);

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