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
503 B
15 lines
503 B
using ErsatzTV.Core.Emby; |
|
using ErsatzTV.Core.Interfaces.Emby; |
|
|
|
namespace ErsatzTV.Application.Emby; |
|
|
|
public class GetEmbySecretsHandler : IRequestHandler<GetEmbySecrets, EmbySecrets> |
|
{ |
|
private readonly IEmbySecretStore _embySecretStore; |
|
|
|
public GetEmbySecretsHandler(IEmbySecretStore embySecretStore) => |
|
_embySecretStore = embySecretStore; |
|
|
|
public Task<EmbySecrets> Handle(GetEmbySecrets request, CancellationToken cancellationToken) => |
|
_embySecretStore.ReadSecrets(); |
|
}
|
|
|