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.
14 lines
525 B
14 lines
525 B
using ErsatzTV.Core; |
|
using ErsatzTV.Core.Interfaces.Metadata; |
|
|
|
namespace ErsatzTV.Application.Channels; |
|
|
|
public class GetChannelStreamSelectorsHandler(ILocalFileSystem localFileSystem) |
|
: IRequestHandler<GetChannelStreamSelectors, List<string>> |
|
{ |
|
public Task<List<string>> Handle(GetChannelStreamSelectors request, CancellationToken cancellationToken) => |
|
localFileSystem.ListFiles(FileSystemLayout.ChannelStreamSelectorsFolder) |
|
.Map(Path.GetFileName) |
|
.ToList() |
|
.AsTask(); |
|
}
|
|
|