6 references to IPNetwork
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersOptions.cs (1)
86
public IList<IPNetwork> KnownNetworks { get; } = new List<IPNetwork>() { new
IPNetwork
(IPAddress.Loopback, 8) };
Microsoft.AspNetCore.HttpOverrides.Tests (5)
ForwardedHeadersMiddlewareTest.cs (1)
1022
options.KnownNetworks.Add(new
IPNetwork
(networkIp, prefixLength));
IPNetworkTest.cs (4)
25
var network = new
IPNetwork
(IPAddress.Parse(prefixText), length);
39
var network = new
IPNetwork
(IPAddress.Parse(prefixText), length);
54
var network = new
IPNetwork
(address, prefixLength);
72
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new
IPNetwork
(address, prefixLength));