#region ========================================================================= USING ===================================================================================== using Nemera.Plugins.Contracts.Common.Models.DTO.Settings; using Nemera.Plugins.Contracts.Core.Plugins; using Nemera.Plugins.Pdf.Common.DependencyInjection; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; #endregion namespace Nemera.Plugins.Pdf.Core; /// /// Plugin that decodes PDF books into a normalized reading document. /// public sealed class PdfPlugin : IPlugin, IPluginServiceRegistrator { /// /// The unique identifier of the plugin. /// public static readonly Guid s_pluginId = new("c2f9b8f0-5a4b-4e3d-8b2f-7e4a9c1d3e5f"); /// /// Gets the unique identifier of the plugin. /// public Guid Id => s_pluginId; /// /// Gets the display name of the plugin. /// public string Name => "PDF 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 PDF 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.AddPdfReader(pluginId: Id); } }