/// <summary>
 /// Initializes a new instance of <see cref="RecaptchaFilter"/>.
 /// </summary>
 /// <param name="service">Recaptcha validation service</param>
 /// <param name="options">Recaptcha options</param>
 /// <param name="logger">Logger service</param>
 public RecaptchaFilter(IRecaptchaTokenValidationService service,
                        IOptions <RecaptchaOptions> options,
                        ILogger <RecaptchaFilter> logger)
 {
     this.logger = logger;
     Service     = service ?? throw new ArgumentNullException(nameof(service));
     Options     = options?.Value ?? throw new ArgumentNullException(nameof(options));
 }
 /// <summary>
 /// Initializes a new instance of <see cref="RecaptchaValidationService" />.
 /// </summary>
 /// <param name="recaptchaOptions">Recaptcha options</param>
 /// <param name="logger">Logger service</param>
 public RecaptchaValidationService(IOptions <RecaptchaOptions> recaptchaOptions, ILogger <RecaptchaValidationService> logger)
 {
     Options     = recaptchaOptions.Value;
     this.logger = logger;
 }