Ejemplo n.º 1
0
 private static WebProxyModel MapWebProxy(IWebProxySettings settings)
 {
     return(settings != null ? new WebProxyModel
     {
         Address = settings.Address,
         UserName = settings.UserName,
         Password = settings.Password
     } : null);
 }
Ejemplo n.º 2
0
        /// <inheritdoc cref="IProxyResponseBuilder.WithProxy(IProxyAndRecordSettings)"/>
        public IResponseBuilder WithProxy(IProxyAndRecordSettings settings)
        {
            Check.NotNull(settings, nameof(settings));

            ProxyUrl         = settings.Url;
            WebProxySettings = settings.WebProxySettings;

            _httpClientForProxy = HttpClientHelper.CreateHttpClient(settings);
            return(this);
        }