mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
606 B
15 lines
606 B
using System.Globalization; |
|
using ErsatzTV.Core.Interfaces.Repositories; |
|
|
|
namespace ErsatzTV.Application.MediaItems; |
|
|
|
public class GetAllLanguageCodesHandler : IRequestHandler<GetAllLanguageCodes, List<CultureInfo>> |
|
{ |
|
private readonly IMediaItemRepository _mediaItemRepository; |
|
|
|
public GetAllLanguageCodesHandler(IMediaItemRepository mediaItemRepository) => |
|
_mediaItemRepository = mediaItemRepository; |
|
|
|
public async Task<List<CultureInfo>> Handle(GetAllLanguageCodes request, CancellationToken cancellationToken) => |
|
await _mediaItemRepository.GetAllLanguageCodeCultures(); |
|
}
|
|
|