//using System; //using System.Collections.Generic; //using System.Linq; //using System.Text; //using System.Threading.Tasks; //using Database.Database; //using log4net; //namespace Common.Singleton //{ // public class CommonConfig // { // List? configs; // private CommonConfig() { } // private static CommonConfig? instance = null; // public static CommonConfig Instance // { // get // { // if (instance == null) // { // instance = new CommonConfig(); // } // return instance; // } // } // public void InitConfig(ILog log, ModelContext dbContext) // { // log.Info("INIT config"); // if (configs == null || configs.Count == 0) // { // configs = dbContext.Configs.ToList(); // log.Info("Total config: " + configs.Count); // } // } // public List? GetConfig(string name) // { // if (configs != null && configs.Count > 0) // { // return configs.FindAll(x => x.ParamName == name); // } // return null; // } // public List? GetConfig(List nameList) // { // if (configs != null && configs.Count > 0) // { // return configs.FindAll(x => nameList.Contains(x.ParamName)); // } // return null; // } // } //}