using Ablera.Serdica.Common.Tools;
using Ablera.Serdica.Common.Tools.Models.Config;
using Ablera.Serdica.Authority.Plugin.Standard.Models;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ablera.Serdica.Authority.Services;

public class UserAccountSettingsProvider : GenericJsonSettingsProvider<UserAccountSettings>
{
    public const string JsonFileName = "useraccount-settings.json";
    public static readonly string JsonFilePath =
        Path.GetDirectoryName(typeof(UserAccountSettingsProvider).Assembly.Location)
        ?? AppContext.BaseDirectory;

    public UserAccountSettingsProvider(
        ILogger<GenericJsonSettingsProvider<UserAccountSettings>> logger, 
        IOptions<JsonFileSettingsConfig> options) 
        : base(logger, options, JsonFileName, null, JsonFilePath)
    {
    }
}
