2025-06-13 11:37:19 +02:00
|
|
|
|
using BeWo.Service.Extensions;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BeWo.Service.Core
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class ConfigReader
|
|
|
|
|
|
{
|
|
|
|
|
|
public static List<string> GetIPAddressList(IPAddressList iPAddressList)
|
|
|
|
|
|
{
|
2025-06-17 15:46:04 +02:00
|
|
|
|
if(iPAddressList == IPAddressList.None)
|
|
|
|
|
|
throw new ArgumentException(nameof(iPAddressList));
|
|
|
|
|
|
|
2025-06-13 11:37:19 +02:00
|
|
|
|
var lConfigPath = iPAddressList.GetConfigPath();
|
|
|
|
|
|
|
|
|
|
|
|
var lines = File.ReadAllLines(lConfigPath);
|
|
|
|
|
|
|
|
|
|
|
|
return lines.ToList();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|