fasdfsa's picture
init
fab29d7
using System;
using System.Diagnostics.CodeAnalysis;
namespace VersOne.Epub.Options
{
/// <summary>
/// Various options to configure the behavior of the EPUB content reader which is used for loading local content files.
/// </summary>
public class ContentReaderOptions
{
/// <summary>
/// Initializes a new instance of the <see cref="ContentReaderOptions" /> class.
/// </summary>
/// <param name="preset">An optional preset to initialize the <see cref="ContentReaderOptions" /> class with a predefined set of options.</param>
[SuppressMessage("Style", "IDE0060:Remove unused parameter", Justification = "Temporarily ignore unused 'preset' parameter.")]
public ContentReaderOptions(EpubReaderOptionsPreset? preset = null)
{
}
/// <summary>
/// Occurs when a local content file is listed in the EPUB manifest but the content reader is unable to find it in the EPUB archive.
/// This event lets the application to be notified of such errors and to decide how EPUB content reader should handle the missing file.
/// </summary>
public event EventHandler<ContentFileMissingEventArgs>? ContentFileMissing;
internal void RaiseContentFileMissingEvent(ContentFileMissingEventArgs contentFileMissingEventArgs)
{
ContentFileMissing?.Invoke(this, contentFileMissingEventArgs);
}
}
}