Ejemplo n.º 1
0
        internal Pipeline(IHttpDocumentFactory documentFactory, int maxConcurrency)
        {
            _documentFactory = documentFactory;
            _maxConcurrency  = maxConcurrency;

            _onDocumentError = err =>
            {
                Logger.ErrorException(
                    "An error occurred during processing of document '{DocumentId}'",
                    err.Exception,
                    err.Document.SourceId);

                _userErrorAction(err);
            };
        }
Ejemplo n.º 2
0
 public LoggingDocumentFactory(IHttpDocumentFactory underlyingDocumentFactory)
 {
     _wrappedDocumentFactory = underlyingDocumentFactory;
 }