public HCaptchaProvider(IHCaptchaApi captchaApi, IOptions <HCaptchaOptions> captchaOptionsAccessor)
 {
     _captchaApi     = captchaApi;
     _captchaOptions = captchaOptionsAccessor.Value;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HCaptchaProvider" /> class.
 /// </summary>
 /// <param name="captchaApi">Contains an instance of the hCAPTCHA API implementation.</param>
 /// <param name="captchaOptions">Contains an options accessor for the <see cref="CaptchaOptions" /> settings.</param>
 public HCaptchaProvider(IHCaptchaApi captchaApi, CaptchaOptions captchaOptions)
 {
     this.captchaApi = captchaApi;
     this.options    = captchaOptions;
 }