Method GetClientKey
GetClientKey(IPAddress?)
Gets the key that the per-client limits count requests from the specified client address under. Requests from addresses with the same key share a count.
Declaration
public static IPAddress GetClientKey(IPAddress? address)
Parameters
| Type | Name | Description |
|---|---|---|
| IPAddress | address | The client address (RemoteIpAddress), or null for a connection without a remote IP address. |
Returns
| Type | Description |
|---|---|
| IPAddress | An IPv4 address as is, the IPv4 address that an IPv4-mapped IPv6 address maps, the network address of the /64 network that any other IPv6 address
is in (such as |
Remarks
Exemptions are not applied: exempt addresses (see ExemptPrivateNetworks and ExemptNetworks) get a key like any other.