using ErsatzTV.Core.Interfaces.Repositories; namespace ErsatzTV.Application.Libraries; public class CountMediaItemsByLibraryPathHandler : IRequestHandler { private readonly ILibraryRepository _libraryRepository; public CountMediaItemsByLibraryPathHandler(ILibraryRepository libraryRepository) => _libraryRepository = libraryRepository; public Task Handle(CountMediaItemsByLibraryPath request, CancellationToken cancellationToken) => _libraryRepository.CountMediaItemsByPath(request.LibraryPathId); }