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