20 lines
574 B
C#
20 lines
574 B
C#
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);
|
|
}
|