26 lines
550 B
C#
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();
|
|
}
|
|
}
|
|
}
|