#region ========================================================================= USING ===================================================================================== using Nemera.Plugins.Contracts.Common.Models.DTO.Settings; using Nemera.Plugins.Contracts.Core.Plugins; using Nemera.Plugins.Epub.Common.DependencyInjection; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; #endregion namespace Nemera.Plugins.Epub.Core; /// /// Plugin that decodes EPUB books into a normalized reading document. /// public sealed class EpubPlugin : IPlugin, IPluginServiceRegistrator { /// /// The unique identifier of the plugin. /// public static readonly Guid s_pluginId = new("b1e8a8e0-4f3a-4d2c-9a1e-6d3f8a9b2c3d"); /// /// Gets the unique identifier of the plugin. /// public Guid Id => s_pluginId; /// /// Gets the display name of the plugin. /// public string Name => "EPUB Reader"; /// /// Gets the author of the plugin. /// public string Author => "Nemera"; /// /// Gets the version of the plugin. /// public Version Version => new(1, 0, 0); /// /// Gets the description of the plugin. /// public string Description => "Allows reading of EPUB format books."; /// /// Gets the settings schema of the plugin. /// /// The settings descriptors of the plugin. public IReadOnlyList GetSettingsSchema() { return []; } /// /// Registers the services required by the plugin. /// /// The service collection to register the services into. public void RegisterServices(IServiceCollection services) { services.AddEpubReader(pluginId: Id); } }