1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System;
- using Newtonsoft.Json;
- using System.Collections.Concurrent;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Net.Http.Json;
- using System.Net.Mail;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- namespace Flyinsono.Client.Test.Utilities
- {
- internal class CommonConfigManager
- {
- public static List<string> DllList { get; set; }
- /// <summary>
- /// 初始化读取数据
- /// </summary>
- static CommonConfigManager()
- {
- //GetCountryData();
- //LoadExportToExcelData();
- var jsonContent = File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $"Config", "Config.json"));
- var testConfig = JsonConvert.DeserializeObject<DllConfig>(jsonContent);
- DllList = testConfig.DllList.Split(',').ToList();
- }
- public class DllConfig
- {
- public string DllList { get; set; }
- }
- }
- }
|