Beispiel #1
0
        public async Task <DocumentContent> Get(Guid documentId)
        {
            var result = await _repo.Fetch(documentId);

            if (result == null)
            {
                return(null);
            }

            var decryptedContent = _encryptionService.Decrypt(result.Content);

            return(new DocumentContent()
            {
                Content = _compressionService.Decompress(decryptedContent),
                ContentType = result.Type,
                Name = result.Name
            });
        }