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); }
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)); }