IReCaptchaClient
Client which handles all ReCaptcha verifications.
Type: Interface
Namespace: ReCaptcha.Desktop.WinForms.Client.Interfaces
Assembly: ReCaptcha.Desktop.WinForms
public interface IReCaptchaClient
Properties
Configuration
The configuration used for this client.
Type: ReCaptchaConfig
Modifier: none
FormConfiguration
The form configuration used for this client.
Type: FormConfig
Modifier: none
VerificationRecieved
Fires when verifcation was recieved.
Type: EventHandler<VerificationRecievedEventArgs>?
Modifier: event
VerificationCancelled
Fires when verifcation was cancelled.
Type: EventHandler<VerificationCancelledEventArgs>?
Modifier: event
ReCaptchaResized
Fires when Google reCAPTCHA widget gets resized.
Type: EventHandler<ReCaptchaResizedEventArgs>?
Modifier: event
Methods
VerifyAsync
Sets up the reCAPTCHA site and opens a new window for the user to verify.
Returns: A Google reCAPTCHA token.
Task<string> VerifyAsync(
CancellationToken cancellationToken = default!)
Parameter | Description |
---|---|
CancellationToken cancellationToken | The token to cancel this action. |