コード例 #1
0
        private void ReadOpfData(MetadataResult <Book> bookResult, string metaFile, CancellationToken cancellationToken)
        {
            var book = bookResult.Item;

            cancellationToken.ThrowIfCancellationRequested();

            var doc = new XmlDocument();

            doc.Load(metaFile);

            OpfReader.ReadOpfData(bookResult, doc, cancellationToken, _logger);
        }
コード例 #2
0
        private MetadataResult <Book> ReadOpfData(string metaFile, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            var doc = new XmlDocument();

            doc.Load(metaFile);

            var utilities = new OpfReader <BookProviderFromOpf>(doc, _logger);

            return(utilities.ReadOpfData(cancellationToken));
        }