25 lines
529 B
C#
25 lines
529 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BeWo.Service.Extensions
|
|
{
|
|
public static class ServiceEnumExtension
|
|
{
|
|
public static string GetConfigPath(this IPAddressList iPAddressList)
|
|
{
|
|
var root = AppDomain.CurrentDomain.BaseDirectory;
|
|
|
|
switch (iPAddressList)
|
|
{
|
|
case IPAddressList.AdminApi: return Path.Combine(root, "Config/allowed_ips_admin_api.txt");
|
|
}
|
|
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|