ReCaptchaConfig
Configuration for a ReCaptcha client.
Type: Class 
Namespace: ReCaptcha.Desktop.WPF.Configuration
Assembly: ReCaptcha.Desktop.WPF
public class ReCaptchaConfig
Constructors
Creates a new ReCaptchaConfig.
public ReCaptchaConfig(
    string siteKey,
    string hostName,
    string language = "en",
    string tokenRecievedHtml = "Token recieved: %token%",
    string tokenRecievedHookedHtml = "Token recieved and sent to application.",
    HttpServerConfig? httpConfiguration = null)
| Parameter | Description | 
|---|---|
| stringsiteKey | The SiteKey for the Google reCAPTCHA service. | 
| stringhostName | The name of the virtual host on which the reCAPTCHA is hosted. Should represent your application. | 
| stringlanguage | The language for the Google reCAPTCHA service. | 
| stringtokenRecievedHtml | The HTML which gets displayed after the user verifed the reCAPTCHA. Use %token% to embed the token inside the message. | 
| stringtokenRecievedHookedHtml | The HTML which gets displayed after the user verifed the reCAPTCHA and its hooked to the application. Use %token% to embed the token inside the message. | 
| HttpServerConfig?httpConfiguration | The configuration for the HttpServer. | 
Properties
SiteKey
The SiteKey for the Google reCAPTCHA service
Type: string
Modifier: none 
Default Value: none
HostName
The name of the virtual host on which the reCAPTCHA is hosted. Should represent your application.
Type: string
Modifier: none 
Default Value: none
Language
The language for the Google reCAPTCHA service.
Type: string
Modifier: none 
Default Value: en
TokenRecievedHtml
The HTML which gets displayed after the user verifed the reCAPTCHA. Use %token% to embed the token inside the message.
Type: string
Modifier: none 
Default Value: Token recieved: %token%
TokenRecievedHookedHtml
The HTML which gets displayed after the user verifed the reCAPTCHA and its hooked to the application. Use %token% to embed the token inside the message.
Type: string
Modifier: none 
Default Value: Token recieved and sent to application.
TokenRecievedHookedHtml
The configuration for the HttpServer
Type: HttpServerConfig
Modifier: none 
Default Value: new()