galaeth-draft/Galaeth.Services/Interfaces/IEmailDomainBlacklistService.cs

20 lines
574 B
C#
Raw Permalink Normal View History

2024-11-17 10:31:01 +01:00
namespace Galaeth.Services.Interfaces;
/// <summary>
/// A service providing a blacklist of email domains to prevent abuse.
/// </summary>
public interface IEmailDomainBlacklistService
{
/// <summary>
/// Update the blacklist.
/// </summary>
Task UpdateBlacklist();
/// <summary>
/// Check the email against the blacklist.
/// </summary>
/// <param name="emailAddress">The email address to test.</param>
/// <returns>True if the email address' domain is in the blacklist.</returns>
Task<bool> CheckBlacklist(string emailAddress);
}