Ejemplo n.º 1
0
    private async Task <Unit> PerformSave(Parameters parameters)
    {
        await _embySecretStore.SaveSecrets(parameters.Secrets);

        await _mediaSourceRepository.UpsertEmby(
            parameters.Secrets.Address,
            parameters.ServerInformation.ServerName,
            parameters.ServerInformation.OperatingSystem);

        await _channel.WriteAsync(new SynchronizeEmbyMediaSources());

        return(Unit.Default);
    }