Interface ICaptchaValidator<TResult>
Provides functionality to validate captcha responses.
public interface ICaptchaValidator<TResult>
Type Parameters
TResult
The 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
response
stringThe captcha response provided by the user.
address
stringThe IP address associated with the captcha request.
cancellationToken
CancellationTokenA token to monitor for cancellation requests.
Returns
- Task<TResult>
A task that represents the asynchronous validation operation with a result of type
TResult
.