public async Task <AtomDocument> GetDocument(DocumentId documentId)
        {
            logger.Info("GetDocument " + documentId.Id);

            try
            {
                var document = await decoratedRetriever.GetDocument(documentId);

                logger.Info(new AtomDocumentSerialiser().Serialise(document, "http://localhost:3600/events/atom/document/"));
                return(document);
            }
            catch (System.Exception e)
            {
                logger.Error(e.ToString());
                throw;
            }
        }
Exemple #2
0
        public async Task <HttpResponseMessage> GetDocument([FromUri] string documentId)
        {
            AtomDocument document = await atomDocumentRetriever.GetDocument(new DocumentId(documentId));

            return(SerialiseDocumentToResonse(document));
        }