Interface IIPBanningCriterion
Represents a criterion for IPBanningModule.
Namespace: EmbedIO.Security
Syntax
public interface IIPBanningCriterion : IDisposable
Methods
ClearIPAddress(IPAddress)
Clears the data generated by an IP address.
Declaration
void ClearIPAddress(IPAddress address)
Parameters
Type | Name | Description |
---|---|---|
IPAddress | address | The address. |
PurgeData()
Purges the data of the Criterion.
Declaration
void PurgeData()
ValidateIPAddress(IPAddress)
Validates the IP address should be banned or not.
Declaration
Task<bool> ValidateIPAddress(IPAddress address)
Parameters
Type | Name | Description |
---|---|---|
IPAddress | address | The address. |
Returns
Type | Description |
---|---|
Task<Boolean> |
|