Ejemplo n.º 1
0
 public FallbackHttpDispatcher(ManagedHttpDispatcher managedDispatcher, CurlHttpDispatcher curlDispatcher, ICacheManager cacheManager, Logger logger)
 {
     _managedDispatcher    = managedDispatcher;
     _curlDispatcher       = curlDispatcher;
     _curlTLSFallbackCache = cacheManager.GetCache <bool>(GetType(), "curlTLSFallback");
     _logger = logger;
 }
Ejemplo n.º 2
0
 public FallbackHttpDispatcher(ICached <bool> curlTLSFallbackCache, Logger logger)
 {
     _logger = logger;
     _curlTLSFallbackCache = curlTLSFallbackCache;
     _managedDispatcher    = new ManagedHttpDispatcher();
     _curlDispatcher       = new CurlHttpDispatcher();
 }
Ejemplo n.º 3
0
 public FallbackHttpDispatcher(ICached<bool> curlTLSFallbackCache, Logger logger)
 {
     _logger = logger;
     _curlTLSFallbackCache = curlTLSFallbackCache;
     _managedDispatcher = new ManagedHttpDispatcher();
     _curlDispatcher = new CurlHttpDispatcher();
 }