public RecaptchaScriptTagHelper(IRecaptchaConfigurationService service, IHttpContextAccessor contextAccessor) { service.CheckArgumentNull(nameof(service)); contextAccessor.CheckArgumentNull(nameof(contextAccessor)); _service = service; _contextAccessor = contextAccessor; }
public ValidateRecaptchaFilter(IRecaptchaValidationService service, IRecaptchaConfigurationService configurationService, ILoggerFactory loggerFactory) { service.CheckArgumentNull(nameof(service)); service.CheckArgumentNull(nameof(configurationService)); loggerFactory.CheckArgumentNull(nameof(loggerFactory)); _service = service; _configurationService = configurationService; _logger = loggerFactory.CreateLogger <ValidateRecaptchaFilter>(); }
public RecaptchaScriptTagHelper(IRecaptchaConfigurationService service, IHttpContextAccessor contextAccessor) { service.CheckArgumentNull(nameof(service)); contextAccessor.CheckArgumentNull(nameof(contextAccessor)); _service = service; _contextAccessor = contextAccessor; var services = contextAccessor.HttpContext.RequestServices; if (!(services is null)) { var nonceService = services.GetService(typeof(ICspNonceService)); if (!(nonceService is null)) { _nonceService = nonceService as CspNonceService; } } }
public RecaptchaTagHelper(IRecaptchaConfigurationService service) { service.CheckArgumentNull(nameof(service)); _service = service; }
public RecaptchaInvisibleScriptTagHelper(RecaptchaService service) { service.CheckArgumentNull(nameof(service)); _service = service; }
public RecaptchaTagHelper(IRecaptchaConfigurationService service) => Service = service;
public RecaptchaScriptTagHelper(IRecaptchaConfigurationService service, IHttpContextAccessor contextAccessor) { Service = service; ContextAccessor = contextAccessor; }
public ValidateRecaptchaFilter(IRecaptchaValidationService service, IRecaptchaConfigurationService configurationService, ILoggerFactory loggerFactory) { Service = service; ConfigurationService = configurationService; Logger = loggerFactory.CreateLogger <ValidateRecaptchaFilter>(); }