Table of Contents

Interface ICaptchaValidator<TResult>

Namespace
Ecng.Net.Captcha
Assembly
Ecng.Net.Clients.dll

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 string

The captcha response provided by the user.

address string

The IP address associated with the captcha request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<TResult>

A task that represents the asynchronous validation operation with a result of type TResult.