Interface ICaptchaValidator<TResult>
Provides functionality to validate captcha responses.
public interface ICaptchaValidator<TResult>
Type Parameters
TResultThe type of the validation result returned.
- Extension Methods
Methods
ValidateAsync(string, string, CancellationToken)
Validates the captcha response asynchronously.
Task<TResult> ValidateAsync(string response, string address, CancellationToken cancellationToken = default)
Parameters
responsestringThe captcha response provided by the user.
addressstringThe IP address associated with the captcha request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<TResult>
A task that represents the asynchronous validation operation with a result of type
TResult.