public reCAPTCHASiteVerifyV3(IOptionsSnapshot <reCAPTCHAOptions> optionsAccessor, IHttpClientFactory clientFactory) { _options = optionsAccessor.Get(reCAPTCHAConsts.V3); _client = clientFactory.CreateClient(reCAPTCHAConsts.V3); _client.BaseAddress = new Uri(_options.VerifyBaseUrl); }
public reCAPTCHAV3ScriptJsTagHelper(IOptionsSnapshot <reCAPTCHAOptions> optionsAccessor) { _options = optionsAccessor.Get(reCAPTCHAConsts.V3); Execute = true; }
public reCAPTCHAV2DivTagHelper(IOptionsSnapshot <reCAPTCHAOptions> optionsAccessor) { _options = optionsAccessor.Get(reCAPTCHAConsts.V2); }