From 0e0e67ca73af80ccb99c31480e86b815c3dc9d72 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Fri, 14 Aug 2026 10:05:16 -0700 Subject: [PATCH] Replaces inheritdoc with explicit documentation --- .../HashedFileSystemFileDto.cs | 31 +++++++++-- .../ValueObjects/Metadata/BaseMetadata.cs | 5 +- .../Common/ValueObjects/Metadata/Genre.cs | 5 +- .../ValueObjects/Metadata/LanguageInfo.cs | 5 +- .../ValueObjects/Metadata/ReleaseInfo.cs | 5 +- .../Common/ValueObjects/Metadata/Tag.cs | 5 +- .../ValueObjects/AudioMetadata.cs | 5 +- .../ValueObjects/FileSystemPathId.cs | 5 +- .../ValueObjects/PathSegment.cs | 5 +- .../ValueObjects/StreamInfo.cs | 5 +- .../ValueObjects/Thumbnail.cs | 5 +- .../ValueObjects/LibraryId.cs | 5 +- .../MediaLibraryScanCompositeId.cs | 5 +- .../MediaLibraryScanJobProgress.cs | 5 +- .../ValueObjects/MediaLibraryScanProgress.cs | 5 +- .../ValueObjects/ScanId.cs | 5 +- .../ValueObjects/ContributorName.cs | 5 +- .../ValueObjects/MediaContributorId.cs | 7 ++- .../ValueObjects/MediaContributorRole.cs | 7 ++- .../UserAggregate/ValueObjects/UserId.cs | 5 +- .../ValueObjects/MovieId.cs | 5 +- .../ValueObjects/VideoMetadata.cs | 5 +- .../ValueObjects/EpisodeId.cs | 5 +- .../ValueObjects/SeasonId.cs | 7 ++- .../ValueObjects/TvShowId.cs | 7 ++- .../ValueObjects/BookId.cs | 5 +- .../ValueObjects/BookLibraryId.cs | 5 +- .../ValueObjects/BookRating.cs | 5 +- .../ValueObjects/BookSeriesId.cs | 7 ++- .../BookLibraryAggregate/ValueObjects/Isbn.cs | 5 +- .../ValueObjects/WrittenContentMetadata.cs | 5 +- .../LibraryAggregate/LibraryId.cs | 5 +- .../Books/BooksFileSystemDiscoveryJob.cs | 8 ++- .../Core/Plugins/PluginDetectionSyncJob.cs | 6 ++- .../Core/Plugins/PluginLoadContext.cs | 6 ++- .../Core/Plugins/PluginManager.cs | 11 +++- .../Core/Plugins/PluginSettingsStore.cs | 7 ++- .../IRemoteMetadataProviderGeneric.cs | 14 ++++- ...iddenAttributeNotSupportedFactAttribute.cs | 4 +- .../Fakes/FakeBookMetadataProvider.cs | 52 +++++++++++++++---- 40 files changed, 243 insertions(+), 61 deletions(-) diff --git a/src/Lumina.Application/Common/Infrastructure/Models/DTO/MediaLibraryScanJobPayloads/HashedFileSystemFileDto.cs b/src/Lumina.Application/Common/Infrastructure/Models/DTO/MediaLibraryScanJobPayloads/HashedFileSystemFileDto.cs index 3a12b1e7..fbd0a2cf 100644 --- a/src/Lumina.Application/Common/Infrastructure/Models/DTO/MediaLibraryScanJobPayloads/HashedFileSystemFileDto.cs +++ b/src/Lumina.Application/Common/Infrastructure/Models/DTO/MediaLibraryScanJobPayloads/HashedFileSystemFileDto.cs @@ -38,31 +38,52 @@ public struct HashedFileSystemFileDto : IEquatable /// public long Ticks { get; set; } - /// + /// + /// Indicates whether the current object is equal to another object of the same type. + /// + /// An object to compare with this object. + /// if the current object is equal to the parameter, otherwise. public readonly bool Equals(HashedFileSystemFileDto other) { return Size == other.Size && CurrentHash == other.CurrentHash && OldHash == other.OldHash && Ticks == other.Ticks && Path == other.Path; } - /// + /// + /// Determines whether the specified object is equal to the current object. + /// + /// The object to compare with the current object. + /// if the specified object is equal to the current object, otherwise. public override readonly bool Equals(object? obj) { return obj is HashedFileSystemFileDto item && Equals(item); } - /// + /// + /// Custom implementation of the equality operator. + /// + /// The left operand of equality. + /// The right operand of equality. + /// if is equal to , otherwise. public static bool operator ==(HashedFileSystemFileDto left, HashedFileSystemFileDto right) { return left.Equals(right); } - /// + /// + /// Custom implementation of the inequality operator. + /// + /// The left operand of equality. + /// The right operand of equality. + /// if is not equal to , otherwise. public static bool operator !=(HashedFileSystemFileDto left, HashedFileSystemFileDto right) { return !(left == right); } - /// + /// + /// Serves as the default hash function. + /// + /// A hash code for the current object. public override readonly int GetHashCode() { return HashCode.Combine(Size, CurrentHash, OldHash, Ticks, Path); diff --git a/src/Lumina.Domain/Common/ValueObjects/Metadata/BaseMetadata.cs b/src/Lumina.Domain/Common/ValueObjects/Metadata/BaseMetadata.cs index bc17e1b2..6c3fa5a3 100644 --- a/src/Lumina.Domain/Common/ValueObjects/Metadata/BaseMetadata.cs +++ b/src/Lumina.Domain/Common/ValueObjects/Metadata/BaseMetadata.cs @@ -89,7 +89,10 @@ public abstract class BaseMetadata : ValueObject OriginalLanguage = originalLanguage; } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Title; diff --git a/src/Lumina.Domain/Common/ValueObjects/Metadata/Genre.cs b/src/Lumina.Domain/Common/ValueObjects/Metadata/Genre.cs index 9c713576..3747dbe1 100644 --- a/src/Lumina.Domain/Common/ValueObjects/Metadata/Genre.cs +++ b/src/Lumina.Domain/Common/ValueObjects/Metadata/Genre.cs @@ -41,7 +41,10 @@ public class Genre : ValueObject return new Genre(name); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Name; diff --git a/src/Lumina.Domain/Common/ValueObjects/Metadata/LanguageInfo.cs b/src/Lumina.Domain/Common/ValueObjects/Metadata/LanguageInfo.cs index dc32fc76..c0231804 100644 --- a/src/Lumina.Domain/Common/ValueObjects/Metadata/LanguageInfo.cs +++ b/src/Lumina.Domain/Common/ValueObjects/Metadata/LanguageInfo.cs @@ -63,7 +63,10 @@ public class LanguageInfo : ValueObject return new LanguageInfo(languageCode, languageName, nativeName); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return LanguageCode; diff --git a/src/Lumina.Domain/Common/ValueObjects/Metadata/ReleaseInfo.cs b/src/Lumina.Domain/Common/ValueObjects/Metadata/ReleaseInfo.cs index c20e6a3f..cc1d0492 100644 --- a/src/Lumina.Domain/Common/ValueObjects/Metadata/ReleaseInfo.cs +++ b/src/Lumina.Domain/Common/ValueObjects/Metadata/ReleaseInfo.cs @@ -101,7 +101,10 @@ public class ReleaseInfo : ValueObject return new ReleaseInfo(originalReleaseDate, originalReleaseYear, reReleaseDate, reReleaseYear, releaseCountry, releaseVersion); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return OriginalReleaseDate; diff --git a/src/Lumina.Domain/Common/ValueObjects/Metadata/Tag.cs b/src/Lumina.Domain/Common/ValueObjects/Metadata/Tag.cs index d17b4cce..44b4280e 100644 --- a/src/Lumina.Domain/Common/ValueObjects/Metadata/Tag.cs +++ b/src/Lumina.Domain/Common/ValueObjects/Metadata/Tag.cs @@ -42,7 +42,10 @@ public class Tag : ValueObject return new Tag(name); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Name; diff --git a/src/Lumina.Domain/Core/BoundedContexts/AudioLibraryBoundedContext/AudioLibraryAggregate/ValueObjects/AudioMetadata.cs b/src/Lumina.Domain/Core/BoundedContexts/AudioLibraryBoundedContext/AudioLibraryAggregate/ValueObjects/AudioMetadata.cs index 22c2bbf1..c4f845eb 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/AudioLibraryBoundedContext/AudioLibraryAggregate/ValueObjects/AudioMetadata.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/AudioLibraryBoundedContext/AudioLibraryAggregate/ValueObjects/AudioMetadata.cs @@ -138,7 +138,10 @@ public class AudioMetadata : BaseMetadata bitrate); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { foreach (object component in base.GetEqualityComponents()) diff --git a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/FileSystemPathId.cs b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/FileSystemPathId.cs index 5da6c0ac..4ec7ef18 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/FileSystemPathId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/FileSystemPathId.cs @@ -28,7 +28,10 @@ public sealed class FileSystemPathId : ValueObject Path = path; } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Path; diff --git a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/PathSegment.cs b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/PathSegment.cs index cb47e666..d30f0ef4 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/PathSegment.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/PathSegment.cs @@ -58,7 +58,10 @@ public class PathSegment : ValueObject return new PathSegment(name, isDirectory, isDrive); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Name; diff --git a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/StreamInfo.cs b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/StreamInfo.cs index e0a48e5b..9e771528 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/StreamInfo.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/StreamInfo.cs @@ -119,7 +119,10 @@ public class StreamInfo : ValueObject return new StreamInfo(streamId, mimeType, bitrate, codec, resolution, frameRate, sampleRate, channels); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return StreamId; diff --git a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/Thumbnail.cs b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/Thumbnail.cs index 02c8cc26..756eb5bf 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/Thumbnail.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/ValueObjects/Thumbnail.cs @@ -34,7 +34,10 @@ public class Thumbnail : ValueObject Bytes = bytes; } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Type; diff --git a/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryAggregate/ValueObjects/LibraryId.cs b/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryAggregate/ValueObjects/LibraryId.cs index 2ba28cb8..dbf0610d 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryAggregate/ValueObjects/LibraryId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryAggregate/ValueObjects/LibraryId.cs @@ -40,7 +40,10 @@ public sealed class LibraryId : EntityId return new LibraryId(value); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; diff --git a/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/MediaLibraryScanCompositeId.cs b/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/MediaLibraryScanCompositeId.cs index 33b9fddf..2f9ac9d1 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/MediaLibraryScanCompositeId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/MediaLibraryScanCompositeId.cs @@ -45,7 +45,10 @@ public sealed class MediaLibraryScanCompositeId : ValueObject return new MediaLibraryScanCompositeId(scanId, userId); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return ScanId; diff --git a/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/MediaLibraryScanJobProgress.cs b/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/MediaLibraryScanJobProgress.cs index 72673403..0108c07d 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/MediaLibraryScanJobProgress.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/MediaLibraryScanJobProgress.cs @@ -69,7 +69,10 @@ public sealed class MediaLibraryScanJobProgress : ValueObject return new MediaLibraryScanJobProgress(completedItems, totalItems, currentOperation); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return CompletedItems; diff --git a/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/MediaLibraryScanProgress.cs b/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/MediaLibraryScanProgress.cs index 868357cf..2d7868d9 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/MediaLibraryScanProgress.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/MediaLibraryScanProgress.cs @@ -117,7 +117,10 @@ public sealed class MediaLibraryScanProgress : ValueObject return new MediaLibraryScanProgress(scanId, userId, libraryId, completedJobs, totalJobs, status, currentJobProgress); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return CompletedJobs; diff --git a/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/ScanId.cs b/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/ScanId.cs index d0e5e670..411eb967 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/ScanId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/LibraryManagementBoundedContext/LibraryScanAggregate/ValueObjects/ScanId.cs @@ -40,7 +40,10 @@ public sealed class ScanId : EntityId return new ScanId(value); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; diff --git a/src/Lumina.Domain/Core/BoundedContexts/MediaContributorBoundedContext/MediaContributorAggregate/ValueObjects/ContributorName.cs b/src/Lumina.Domain/Core/BoundedContexts/MediaContributorBoundedContext/MediaContributorAggregate/ValueObjects/ContributorName.cs index 4677e699..8527c602 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/MediaContributorBoundedContext/MediaContributorAggregate/ValueObjects/ContributorName.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/MediaContributorBoundedContext/MediaContributorAggregate/ValueObjects/ContributorName.cs @@ -46,7 +46,10 @@ public sealed class MediaContributorName : ValueObject return new MediaContributorName(displayName, legalName); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return DisplayName; diff --git a/src/Lumina.Domain/Core/BoundedContexts/MediaContributorBoundedContext/MediaContributorAggregate/ValueObjects/MediaContributorId.cs b/src/Lumina.Domain/Core/BoundedContexts/MediaContributorBoundedContext/MediaContributorAggregate/ValueObjects/MediaContributorId.cs index fc99490f..178c7c76 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/MediaContributorBoundedContext/MediaContributorAggregate/ValueObjects/MediaContributorId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/MediaContributorBoundedContext/MediaContributorAggregate/ValueObjects/MediaContributorId.cs @@ -40,9 +40,12 @@ public sealed class MediaContributorId : EntityId return new MediaContributorId(value); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; } -} \ No newline at end of file +} diff --git a/src/Lumina.Domain/Core/BoundedContexts/MediaContributorBoundedContext/MediaContributorAggregate/ValueObjects/MediaContributorRole.cs b/src/Lumina.Domain/Core/BoundedContexts/MediaContributorBoundedContext/MediaContributorAggregate/ValueObjects/MediaContributorRole.cs index 5956fba2..2acbe69a 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/MediaContributorBoundedContext/MediaContributorAggregate/ValueObjects/MediaContributorRole.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/MediaContributorBoundedContext/MediaContributorAggregate/ValueObjects/MediaContributorRole.cs @@ -45,10 +45,13 @@ public sealed class MediaContributorRole : ValueObject return new MediaContributorRole(name, category); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Name; yield return Category; } -} \ No newline at end of file +} diff --git a/src/Lumina.Domain/Core/BoundedContexts/UserManagementBoundedContext/UserAggregate/ValueObjects/UserId.cs b/src/Lumina.Domain/Core/BoundedContexts/UserManagementBoundedContext/UserAggregate/ValueObjects/UserId.cs index 853648d8..f7f1820b 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/UserManagementBoundedContext/UserAggregate/ValueObjects/UserId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/UserManagementBoundedContext/UserAggregate/ValueObjects/UserId.cs @@ -40,7 +40,10 @@ public sealed class UserId : EntityId return new UserId(value); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; diff --git a/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/MovieLibraryAggregate/ValueObjects/MovieId.cs b/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/MovieLibraryAggregate/ValueObjects/MovieId.cs index 3b6c4b59..6dea195c 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/MovieLibraryAggregate/ValueObjects/MovieId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/MovieLibraryAggregate/ValueObjects/MovieId.cs @@ -42,7 +42,10 @@ public sealed class MovieId : EntityId return new MovieId(value); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; diff --git a/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/MovieLibraryAggregate/ValueObjects/VideoMetadata.cs b/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/MovieLibraryAggregate/ValueObjects/VideoMetadata.cs index 6bf2b187..5823ebb5 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/MovieLibraryAggregate/ValueObjects/VideoMetadata.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/MovieLibraryAggregate/ValueObjects/VideoMetadata.cs @@ -116,7 +116,10 @@ public class VideoMetadata : BaseMetadata language, originalLanguage, frameRate, videoCodec, audioCodec, genres, tags); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { foreach (object component in base.GetEqualityComponents()) diff --git a/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/TvShowLibraryAggregate/ValueObjects/EpisodeId.cs b/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/TvShowLibraryAggregate/ValueObjects/EpisodeId.cs index 50df2cd6..7cf86b24 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/TvShowLibraryAggregate/ValueObjects/EpisodeId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/TvShowLibraryAggregate/ValueObjects/EpisodeId.cs @@ -40,7 +40,10 @@ public sealed class EpisodeId : EntityId return new EpisodeId(value); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; diff --git a/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/TvShowLibraryAggregate/ValueObjects/SeasonId.cs b/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/TvShowLibraryAggregate/ValueObjects/SeasonId.cs index ed7bd3e1..19112a16 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/TvShowLibraryAggregate/ValueObjects/SeasonId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/TvShowLibraryAggregate/ValueObjects/SeasonId.cs @@ -40,9 +40,12 @@ public sealed class SeasonId : EntityId return new SeasonId(value); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; } -} \ No newline at end of file +} diff --git a/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/TvShowLibraryAggregate/ValueObjects/TvShowId.cs b/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/TvShowLibraryAggregate/ValueObjects/TvShowId.cs index 2fa124da..1374dcea 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/TvShowLibraryAggregate/ValueObjects/TvShowId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/VideoLibraryBoundedContext/TvShowLibraryAggregate/ValueObjects/TvShowId.cs @@ -40,9 +40,12 @@ public sealed class TvShowId : EntityId return new TvShowId(value); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; } -} \ No newline at end of file +} diff --git a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookId.cs b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookId.cs index 0e568056..89b79e8e 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookId.cs @@ -40,7 +40,10 @@ public sealed class BookId : EntityId return new BookId(value); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; diff --git a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookLibraryId.cs b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookLibraryId.cs index 97a9b1f4..3373766c 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookLibraryId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookLibraryId.cs @@ -43,7 +43,10 @@ public sealed class BookLibraryId : EntityId // TODO: to be removed return new BookLibraryId(value); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; diff --git a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookRating.cs b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookRating.cs index 54518548..40476ad2 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookRating.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookRating.cs @@ -52,7 +52,10 @@ public class BookRating : Rating return new BookRating(value, maxValue, source, voteCount); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; diff --git a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookSeriesId.cs b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookSeriesId.cs index f8086a6c..67c9d8f4 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookSeriesId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/BookSeriesId.cs @@ -43,9 +43,12 @@ public sealed class BookSeriesId : ValueObject return new BookSeriesId(value); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; } -} \ No newline at end of file +} diff --git a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/Isbn.cs b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/Isbn.cs index ce5cbdba..6a841213 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/Isbn.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/Isbn.cs @@ -109,7 +109,10 @@ public sealed class Isbn : ValueObject return checkDigit == (isbn[12] - '0'); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; diff --git a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/WrittenContentMetadata.cs b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/WrittenContentMetadata.cs index 6f47ad70..454bc0b9 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/WrittenContentMetadata.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/ValueObjects/WrittenContentMetadata.cs @@ -94,7 +94,10 @@ public class WrittenContentMetadata : BaseMetadata ); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { foreach (object component in base.GetEqualityComponents()) diff --git a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/ExternalIdentifiers/LibraryManagementBoundedContext/LibraryAggregate/LibraryId.cs b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/ExternalIdentifiers/LibraryManagementBoundedContext/LibraryAggregate/LibraryId.cs index be9d5da1..126f2b82 100644 --- a/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/ExternalIdentifiers/LibraryManagementBoundedContext/LibraryAggregate/LibraryId.cs +++ b/src/Lumina.Domain/Core/BoundedContexts/WrittenContentLibraryBoundedContext/ExternalIdentifiers/LibraryManagementBoundedContext/LibraryAggregate/LibraryId.cs @@ -40,7 +40,10 @@ public sealed class LibraryId : EntityId return new LibraryId(value); } - /// + /// + /// Gets the list of items that define equality of the object. + /// + /// A list of items defining the equality. public override IEnumerable GetEqualityComponents() { yield return Value; diff --git a/src/Lumina.Infrastructure/Core/MediaLibrary/Management/Scanning/Jobs/WrittenContent/Books/BooksFileSystemDiscoveryJob.cs b/src/Lumina.Infrastructure/Core/MediaLibrary/Management/Scanning/Jobs/WrittenContent/Books/BooksFileSystemDiscoveryJob.cs index c252b167..59368ab4 100644 --- a/src/Lumina.Infrastructure/Core/MediaLibrary/Management/Scanning/Jobs/WrittenContent/Books/BooksFileSystemDiscoveryJob.cs +++ b/src/Lumina.Infrastructure/Core/MediaLibrary/Management/Scanning/Jobs/WrittenContent/Books/BooksFileSystemDiscoveryJob.cs @@ -60,7 +60,13 @@ internal sealed class BooksFileSystemDiscoveryJob : MediaLibraryScanJob, IBooksF _serviceScopeFactory = serviceScopeFactory; } - /// + /// + /// Executes the payload of the media library scan job. + /// + /// The type of the input parameter representing the data to be processed by this payload. + /// The id of the media library scan job. + /// The input data to be processed by this payload. + /// Cancellation token that can be used to stop the execution. public override async Task ExecuteAsync(Guid id, TInput input, CancellationToken cancellationToken) { try diff --git a/src/Lumina.Infrastructure/Core/Plugins/PluginDetectionSyncJob.cs b/src/Lumina.Infrastructure/Core/Plugins/PluginDetectionSyncJob.cs index ce5c3a04..d1de207d 100644 --- a/src/Lumina.Infrastructure/Core/Plugins/PluginDetectionSyncJob.cs +++ b/src/Lumina.Infrastructure/Core/Plugins/PluginDetectionSyncJob.cs @@ -42,7 +42,11 @@ internal sealed class PluginDetectionSyncJob : BackgroundService _logger = logger; } - /// + /// + /// This method is called when the starts. The implementation should return a task that represents the lifetime of the long running operation(s) being performed. + /// + /// Triggered when is called. + /// A that represents the long running operations. protected override async Task ExecuteAsync(CancellationToken stoppingToken) { foreach (string loadError in _loadErrors) diff --git a/src/Lumina.Infrastructure/Core/Plugins/PluginLoadContext.cs b/src/Lumina.Infrastructure/Core/Plugins/PluginLoadContext.cs index 5097a35b..40a123b6 100644 --- a/src/Lumina.Infrastructure/Core/Plugins/PluginLoadContext.cs +++ b/src/Lumina.Infrastructure/Core/Plugins/PluginLoadContext.cs @@ -23,7 +23,11 @@ internal sealed class PluginLoadContext : AssemblyLoadContext _pluginDirectory = pluginDirectory; } - /// + /// + /// Loads the assembly whose assembly name is specified. + /// + /// The object that describes the assembly to be loaded. + /// The loaded assembly, or when it cannot be resolved. protected override Assembly? Load(AssemblyName assemblyName) { if (assemblyName.Name is null) diff --git a/src/Lumina.Infrastructure/Core/Plugins/PluginManager.cs b/src/Lumina.Infrastructure/Core/Plugins/PluginManager.cs index 07a84af2..487aeb13 100644 --- a/src/Lumina.Infrastructure/Core/Plugins/PluginManager.cs +++ b/src/Lumina.Infrastructure/Core/Plugins/PluginManager.cs @@ -24,13 +24,20 @@ internal sealed class PluginManager : IPluginManager _pluginsById = plugins.ToDictionary(plugin => plugin.Id); } - /// + /// + /// Gets the plugins that were loaded successfully. + /// + /// The collection of loaded plugins. public IReadOnlyList GetPlugins() { return [.. _pluginsById.Values]; } - /// + /// + /// Gets the plugin identified by . + /// + /// The unique identifier of the plugin. + /// The plugin, or when no plugin with the provided Id was loaded. public IPlugin? GetPlugin(Guid pluginId) { return _pluginsById.GetValueOrDefault(pluginId); diff --git a/src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs b/src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs index 7ea232c1..149acff8 100644 --- a/src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs +++ b/src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs @@ -33,7 +33,12 @@ internal sealed class PluginSettingsStore : IPluginSettingsStore _logger = logger; } - /// + /// + /// Gets the settings persisted by the host for the plugin identified by . + /// + /// The unique identifier of the plugin whose settings are read. + /// Cancellation token that can be used to cancel the operation. + /// The persisted settings keyed by setting key, or when no settings were persisted for the plugin. public async Task?> GetSettingsAsync(Guid pluginId, CancellationToken cancellationToken) { Result getPluginResult = await _unitOfWork.PluginRepository.GetByIdAsync(pluginId, cancellationToken).ConfigureAwait(false); diff --git a/src/Lumina.Plugins.Contracts/Core/Metadata/IRemoteMetadataProviderGeneric.cs b/src/Lumina.Plugins.Contracts/Core/Metadata/IRemoteMetadataProviderGeneric.cs index 85c292cb..4d70f44d 100644 --- a/src/Lumina.Plugins.Contracts/Core/Metadata/IRemoteMetadataProviderGeneric.cs +++ b/src/Lumina.Plugins.Contracts/Core/Metadata/IRemoteMetadataProviderGeneric.cs @@ -32,13 +32,23 @@ public interface IRemoteMetadataProvider : IRemoteMetadataPr /// The metadata of the media item, or when no metadata was found. Task GetMetadataAsync(TLookup lookup, CancellationToken cancellationToken); - /// + /// + /// Searches for the metadata of the media item described by . + /// + /// The lookup describing the media item to search for. + /// Cancellation token that can be used to stop the execution. + /// The collection of metadata candidates found for the media item. async Task> IRemoteMetadataProvider.GetSearchResultsAsync(MetadataLookupDto lookup, CancellationToken cancellationToken) { return await GetSearchResultsAsync((TLookup)lookup, cancellationToken).ConfigureAwait(false); } - /// + /// + /// Gets the metadata of the media item described by . + /// + /// The lookup describing the media item to get the metadata for. + /// Cancellation token that can be used to stop the execution. + /// The metadata of the media item, or when no metadata was found. async Task IRemoteMetadataProvider.GetMetadataAsync(MetadataLookupDto lookup, CancellationToken cancellationToken) { return await GetMetadataAsync((TLookup)lookup, cancellationToken).ConfigureAwait(false); diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/SkipWhenHiddenAttributeNotSupportedFactAttribute.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/SkipWhenHiddenAttributeNotSupportedFactAttribute.cs index 91fc85fc..9c3348b5 100644 --- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/SkipWhenHiddenAttributeNotSupportedFactAttribute.cs +++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/SkipWhenHiddenAttributeNotSupportedFactAttribute.cs @@ -13,7 +13,9 @@ namespace Lumina.Presentation.Api.IntegrationTests.Common.Setup; [AttributeUsage(AttributeTargets.Method)] public sealed class SkipWhenHiddenAttributeNotSupportedFactAttribute : FactAttribute { - /// + /// + /// Gets the reason to skip the test. If set, the test will be skipped instead of executed. + /// public override string Skip => FileSystemStructureFixture.HiddenAttributeIsSupported ? string.Empty : "The file system does not support the hidden file attribute, so the hidden elements scenario cannot be set up."; diff --git a/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Fakes/FakeBookMetadataProvider.cs b/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Fakes/FakeBookMetadataProvider.cs index 264bcdb7..c72dfc21 100644 --- a/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Fakes/FakeBookMetadataProvider.cs +++ b/tests/UnitTests/Lumina.Plugins.Contracts.UnitTests/Fakes/FakeBookMetadataProvider.cs @@ -20,28 +20,45 @@ namespace Lumina.Plugins.Contracts.UnitTests.Fakes; /// public sealed class FakeBookMetadataProvider : IPlugin, IPluginServiceRegistrator, IRemoteMetadataProvider { - /// + /// + /// Gets the stable unique identifier of the plugin, used to persist its state. + /// public Guid Id { get; } = Guid.Parse("11111111-1111-1111-1111-111111111111"); - /// + /// + /// Gets the display name of the plugin. + /// public string Name { get; } = "Fake Book Metadata Provider"; - /// + /// + /// Gets the author of the plugin. + /// public string Author { get; } = "Lumina"; - /// + /// + /// Gets the version of the plugin. + /// public Version Version { get; } = new(1, 0, 0); - /// + /// + /// Gets the description of the plugin. + /// public string Description { get; } = "A fake metadata provider used to exercise the plugin contracts."; - /// + /// + /// Gets the media library type this metadata provider supports. + /// public LibraryType SupportedLibraryType { get; } = LibraryType.Book; - /// + /// + /// Gets a value indicating whether this metadata provider requires access to the web to retrieve metadata. + /// public bool RequiresWebAccess { get; } = true; - /// + /// + /// Gets the settings schema of the plugin, used by the host to render the plugin settings page. + /// + /// The collection of setting descriptors declared by the plugin. public IReadOnlyList GetSettingsSchema() { return @@ -62,12 +79,20 @@ public sealed class FakeBookMetadataProvider : IPlugin, IPluginServiceRegistrato ]; } - /// + /// + /// Registers the services of the plugin into the host dependency injection container. + /// + /// The service collection to which the plugin services are added. public void RegisterServices(IServiceCollection services) { } - /// + /// + /// Searches for the metadata of the media item described by . + /// + /// The lookup describing the media item to search for. + /// Cancellation token that can be used to stop the execution. + /// The collection of metadata candidates found for the media item. public Task> GetSearchResultsAsync(BookMetadataLookupDto lookup, CancellationToken cancellationToken) { return Task.FromResult>( @@ -77,7 +102,12 @@ public sealed class FakeBookMetadataProvider : IPlugin, IPluginServiceRegistrato ); } - /// + /// + /// Gets the metadata of the media item described by . + /// + /// The lookup describing the media item to get the metadata for. + /// Cancellation token that can be used to stop the execution. + /// The metadata of the media item, or when no metadata was found. public Task GetMetadataAsync(BookMetadataLookupDto lookup, CancellationToken cancellationToken) { if (lookup.Title is null)