using Microsoft.AspNetCore.Http; using System.Collections.Generic; using System.Net; namespace Znyc.Recruitment.Admin.Commons.Net { public interface IIpAddressParser { bool ContainsIp(string ipRule, string clientIp); bool ContainsIp(List ipRules, string clientIp); bool ContainsIp(List ipRules, string clientIp, out string rule); IPAddress GetClientIp(HttpContext context); IPAddress ParseIp(string ipAddress); } }