Exemplo n.º 1
0
 public ClientIpCheckActionFilter(IpSafeList safeList, ILogger <ClientIpCheckActionFilter> logger)
 {
     _ipAddresses = safeList.IpAddresses.Split(';').Select(IPAddress.Parse).ToList();
     _ipNetworks  = safeList.IpNetworks.Split(';').Select(IPNetwork.Parse).ToList();
     _logger      = logger;
 }
Exemplo n.º 2
0
        public AdminSafeListMiddleware(RequestDelegate next, ILogger <AdminSafeListMiddleware> logger, IpSafeList safeList)
        {
            _ipAddresses = safeList.IpAddresses.Split(';').Select(IPAddress.Parse).ToList();
            _ipNetworks  = safeList.IpNetworks.Split(';').Select(IPNetwork.Parse).ToList();

            _next   = next;
            _logger = logger;
        }