Files
BeWoPlaner/Service/Core/ConfigReader.cs
Rene Evertz 78360c91c8 Refactor: Attribute
Weniger Unklarheit bzgl Abfragen bei jeweiligen Service Endpunkten
2025-06-17 15:46:04 +02:00

26 lines
550 B
C#

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)
{
if(iPAddressList == IPAddressList.None)
throw new ArgumentException(nameof(iPAddressList));
var lConfigPath = iPAddressList.GetConfigPath();
var lines = File.ReadAllLines(lConfigPath);
return lines.ToList();
}
}
}