internal ChallengeSolver(HttpClient client, CloudflareHandler handler, Uri siteUrl, DetectResult detectResult)
 {
     HttpClient        = client;
     CloudflareHandler = handler;
     SiteUrl           = siteUrl;
     DetectResult      = detectResult;
 }
Esempio n. 2
0
 internal JsChallengeSolver(CloudflareHandler handler, Uri siteUrl, DetectResult detectResult, string userAgent, [Optional] int?clearanceDelay)
     : base(handler, siteUrl, detectResult, userAgent)
 {
     if (clearanceDelay.HasValue)
     {
         ClearanceDelay = clearanceDelay.Value;
     }
 }
Esempio n. 3
0
 internal JsChallengeSolver(CloudflareHandler handler, Uri siteUrl, DetectResult detectResult, [Optional] int clearanceDelay)
     : base(handler, siteUrl, detectResult)
 {
     if (clearanceDelay != default(int))
     {
         ClearanceDelay = clearanceDelay;
     }
 }
 internal CaptchaChallengeSolver(CloudflareHandler handler, Uri siteUrl, DetectResult detectResult, string userAgent, CaptchaService captchaProvider)
     : base(handler, siteUrl, detectResult, userAgent)
 {
     this.captchaProvider = captchaProvider;
 }
Esempio n. 5
0
 internal ChallengeSolver(CloudflareHandler handler, Uri siteUrl, DetectResult detectResult, string userAgent)
     : this(new HttpClient(handler), handler, siteUrl, detectResult, userAgent)
 {
 }
Esempio n. 6
0
 internal CaptchaChallengeSolver(HttpClient client, CloudflareHandler handler, Uri siteUrl, DetectResult detectResult, string userAgent, ICaptchaProvider captchaProvider)
     : base(client, handler, siteUrl, detectResult, userAgent)
 {
     this.captchaProvider = captchaProvider;
 }
Esempio n. 7
0
 internal CaptchaChallengeSolver(CloudflareHandler handler, Uri siteUrl, DetectResult detectResult, ICaptchaProvider captchaProvider)
     : base(handler, siteUrl, detectResult)
 {
     this.captchaProvider = captchaProvider;
 }