mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 20:11:10 +00:00
Adds book reading support with EPUB and PDF reader plugins
This commit is contained in:
1 parent
275fd83ff2
commit
f7ccdf3d1c
271 files changed
+11501
-361
No files matched your search
+4
-4
@@ -13,17 +13,17 @@ using System;
|
||||
namespace Lumina.Plugins.OpenLibrary.Common.DependencyInjection;
|
||||
|
||||
/// <summary>
|
||||
/// Provides extension methods for registering the Open Library metadata provider services.
|
||||
/// Utility class for registering the services of the Open Library metadata provider into the Dependency Injection container.
|
||||
/// </summary>
|
||||
internal static class OpenLibraryServices
|
||||
{
|
||||
/// <summary>
|
||||
/// Registers the Open Library book metadata provider and its dependencies, associated with the plugin that provides it.
|
||||
/// Registers the services of the Open Library metadata provider into the Dependency Injection container.
|
||||
/// </summary>
|
||||
/// <param name="services">The service collection to register the services into.</param>
|
||||
/// <param name="services">The service collection to add the services to.</param>
|
||||
/// <param name="pluginId">The unique identifier of the plugin that provides the metadata.</param>
|
||||
/// <param name="settingsCallback">Action used to configure the <see cref="OpenLibrarySettingsDto"/>.</param>
|
||||
/// <returns>The service collection, for chaining.</returns>
|
||||
/// <returns>The updated <see cref="IServiceCollection"/>.</returns>
|
||||
internal static IServiceCollection AddOpenLibraryBookMetadataProvider(this IServiceCollection services, Guid pluginId, Action<OpenLibrarySettingsDto>? settingsCallback = null)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(services);
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\Lumina.Plugins.Contracts\Lumina.Plugins.Contracts.csproj">
|
||||
<Private>false</Private><!--Do not copy this assembly in the output directory, it loaded from somewhere else-->
|
||||
<Private>false</Private><!--Do not copy this assembly in the output directory, it's loaded from somewhere else-->
|
||||
<ExcludeAssets>runtime</ExcludeAssets>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
|
||||
Reference in new issue
Block a user