mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13: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
@@ -16,13 +16,13 @@ using System.IO.Abstractions;
|
||||
namespace Lumina.Domain.Common.DependencyInjection;
|
||||
|
||||
/// <summary>
|
||||
/// Contains all services of the Domain layer.
|
||||
/// Utility class for registering the services of the Domain layer into the Dependency Injection container.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public static class DomainLayerServices
|
||||
{
|
||||
/// <summary>
|
||||
/// Registers the services of the Domain layer into the dependency injection container.
|
||||
/// Registers the services of the Domain layer into the Dependency Injection container.
|
||||
/// </summary>
|
||||
/// <param name="services">The service collection to add the services to.</param>
|
||||
/// <returns>The updated <see cref="IServiceCollection"/>.</returns>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.Common.Primitives;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Domain reading related error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class Reading
|
||||
{
|
||||
public static Error BookIdCannotBeEmpty => Error.Validation(description: nameof(BookIdCannotBeEmpty));
|
||||
public static Error LocationRefCannotBeEmpty => Error.Validation(description: nameof(LocationRefCannotBeEmpty));
|
||||
public static Error ResourceKeyCannotBeEmpty => Error.Validation(description: nameof(ResourceKeyCannotBeEmpty));
|
||||
public static Error BookNotFound => Error.NotFound(description: nameof(BookNotFound));
|
||||
public static Error NoReaderAvailable => Error.NotFound(description: nameof(NoReaderAvailable));
|
||||
public static Error ReaderDisabled => Error.NotFound(description: nameof(ReaderDisabled));
|
||||
public static Error BookFileNotFound => Error.NotFound(description: nameof(BookFileNotFound));
|
||||
public static Error SectionNotFound => Error.NotFound(description: nameof(SectionNotFound));
|
||||
public static Error ResourceNotFound => Error.NotFound(description: nameof(ResourceNotFound));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user