Files
ersatztv/ErsatzTV.Core/Interfaces/Repositories/IImageRepository.cs
T
Jason DoveandGitHub 1c07df5bc3 use cancellation tokens in many places (#2350)
* use cancellation tokens everywhere

* more cancellation tokens
2025-08-27 03:20:35 +00:00

18 lines
553 B
C#

using ErsatzTV.Core.Domain;
using ErsatzTV.Core.Metadata;
namespace ErsatzTV.Core.Interfaces.Repositories;
public interface IImageRepository
{
Task<Either<BaseError, MediaItemScanResult<Image>>> GetOrAdd(
LibraryPath libraryPath,
LibraryFolder libraryFolder,
string path,
CancellationToken cancellationToken);
Task<IEnumerable<string>> FindImagePaths(LibraryPath libraryPath);
Task<List<int>> DeleteByPath(LibraryPath libraryPath, string path);
Task<bool> AddTag(ImageMetadata metadata, Tag tag);
}