using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OASystem.RedisRepository.Config
{
    internal class ConfigHelper
    {
        //internal static T Get<T>(string appSettingsKey, T defaultValue)
        //{
        //    //string text = ConfigurationManager.AppSettings[appSettingsKey];
        //    //if (string.IsNullOrWhiteSpace(text))
        //    //    return defaultValue;
        //    //try
        //    //{
        //    //    var value = Convert.ChangeType(text, typeof(T));
        //    //    return (T)value;
        //    //}
        //    //catch
        //    //{
        //    //    return defaultValue;
        //    //}
        //}
    }
}