示例#1
0
 public ManagedHttpDispatcher(IHttpProxySettingsProvider proxySettingsProvider, ICreateManagedWebProxy createManagedWebProxy, IUserAgentBuilder userAgentBuilder, IPlatformInfo platformInfo, Logger logger)
 {
     _proxySettingsProvider = proxySettingsProvider;
     _createManagedWebProxy = createManagedWebProxy;
     _userAgentBuilder      = userAgentBuilder;
     _platformInfo          = platformInfo;
     _logger = logger;
 }
示例#2
0
        public ManagedHttpDispatcher(IHttpProxySettingsProvider proxySettingsProvider,
                                     ICreateManagedWebProxy createManagedWebProxy,
                                     ICertificateValidationService certificateValidationService,
                                     IUserAgentBuilder userAgentBuilder,
                                     ICacheManager cacheManager)
        {
            _proxySettingsProvider        = proxySettingsProvider;
            _createManagedWebProxy        = createManagedWebProxy;
            _certificateValidationService = certificateValidationService;
            _userAgentBuilder             = userAgentBuilder;

            _httpClientCache = cacheManager.GetCache <System.Net.Http.HttpClient>(typeof(ManagedHttpDispatcher));
        }
示例#3
0
 public CurlHttpDispatcher(IHttpProxySettingsProvider proxySettingsProvider, Logger logger)
 {
     _proxySettingsProvider = proxySettingsProvider;
     _logger = logger;
 }
示例#4
0
 public ManagedHttpDispatcher(IHttpProxySettingsProvider proxySettingsProvider, ICreateManagedWebProxy createManagedWebProxy)
 {
     _proxySettingsProvider = proxySettingsProvider;
     _createManagedWebProxy = createManagedWebProxy;
 }
示例#5
0
 public ManagedHttpDispatcher(IHttpProxySettingsProvider proxySettingsProvider, ICreateManagedWebProxy createManagedWebProxy, IUserAgentBuilder userAgentBuilder)
 {
     _proxySettingsProvider = proxySettingsProvider;
     _createManagedWebProxy = createManagedWebProxy;
     _userAgentBuilder      = userAgentBuilder;
 }
示例#6
0
 public RestClientFactory(IHttpProxySettingsProvider httpProxySettingsProvider, ICreateManagedWebProxy createManagedWebProxy)
 {
     _httpProxySettingsProvider = httpProxySettingsProvider;
     _createManagedWebProxy     = createManagedWebProxy;
 }
 public CurlHttpDispatcher(IHttpProxySettingsProvider proxySettingsProvider, Logger logger)
 {
     _proxySettingsProvider = proxySettingsProvider;
     _logger = logger;
 }
 public ManagedHttpDispatcher(IHttpProxySettingsProvider proxySettingsProvider, ICreateManagedWebProxy createManagedWebProxy)
 {
     _proxySettingsProvider = proxySettingsProvider;
     _createManagedWebProxy = createManagedWebProxy;
 }
示例#9
0
 public CurlHttpDispatcher(IHttpProxySettingsProvider proxySettingsProvider, IUserAgentBuilder userAgentBuilder, Logger logger)
 {
     _proxySettingsProvider = proxySettingsProvider;
     _userAgentBuilder      = userAgentBuilder;
     _logger = logger;
 }