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:
2026-01-14 22:11:11 +01:00
parent 40a8431464
commit 3f7122d30a
350 changed files with 41444 additions and 119 deletions

View 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();
}
}