C# Class hbehr.recaptcha.ReCaptcha

Exibir arquivo Open project: henriqb/ReCaptcha-Asp-Net

Public Methods

Method Description
Configure ( string publicKey, string secretKey, ReCaptchaLanguage defaultLanguage = null ) : void
GetCaptcha ( ReCaptchaLanguage language = null ) : IHtmlString
ResetConfiguration ( ) : void
ValidateCaptcha ( string response, WebProxy proxy = null ) : bool
ValidateCaptchaAsync ( string response, WebProxy proxy = null ) : Task

Method Details

Configure() public static method

public static Configure ( string publicKey, string secretKey, ReCaptchaLanguage defaultLanguage = null ) : void
publicKey string
secretKey string
defaultLanguage ReCaptchaLanguage
return void

GetCaptcha() public static method

public static GetCaptcha ( ReCaptchaLanguage language = null ) : IHtmlString
language ReCaptchaLanguage
return IHtmlString

ResetConfiguration() public static method

public static ResetConfiguration ( ) : void
return void

ValidateCaptcha() public static method

public static ValidateCaptcha ( string response, WebProxy proxy = null ) : bool
response string
proxy System.Net.WebProxy
return bool

ValidateCaptchaAsync() public static method

public static ValidateCaptchaAsync ( string response, WebProxy proxy = null ) : Task
response string
proxy System.Net.WebProxy
return Task