Exemple #1
0
 /// <summary>
 /// Recaptcha service constructor.
 /// </summary>
 /// <param name="recaptchaOptions">Recaptcha options.</param>
 /// <param name="recaptchaClient">Recaptcha Refit client.</param>
 public RecaptchaService(IOptions <RecaptchaOptions> recaptchaOptions, IRecaptchaClient recaptchaClient)
 {
     _recaptchaOptions = recaptchaOptions?.Value;
     _recaptchaClient  = recaptchaClient;
 }
 public UserReportsController(DatabaseContext context, IMemoryCache cache, IRecaptchaClient client)
 {
     _db      = context;
     _cache   = cache;
     _captcha = client;
 }