Got at least one data fetching method working; turns out, we can't use a patched LogicStack to get the data
This commit is contained in:
30
Vendor/EmbedIO-3.5.2/Security/IIPBanningCriterion.cs
vendored
Normal file
30
Vendor/EmbedIO-3.5.2/Security/IIPBanningCriterion.cs
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace EmbedIO.Security
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a criterion for <see cref="IPBanningModule"/>.
|
||||
/// </summary>
|
||||
public interface IIPBanningCriterion : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Validates the IP address should be banned or not.
|
||||
/// </summary>
|
||||
/// <param name="address">The address.</param>
|
||||
/// <returns><c>true</c> if the IP Address should be banned, otherwise <c>false</c>.</returns>
|
||||
Task<bool> ValidateIPAddress(IPAddress address);
|
||||
|
||||
/// <summary>
|
||||
/// Clears the data generated by an IP address.
|
||||
/// </summary>
|
||||
/// <param name="address">The address.</param>
|
||||
void ClearIPAddress(IPAddress address);
|
||||
|
||||
/// <summary>
|
||||
/// Purges the data of the Criterion.
|
||||
/// </summary>
|
||||
void PurgeData();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user