public HttpHandlerOptions Create(FileHttpHandlerOptions options) { var useTracing = _tracer.GetType() != typeof(FakeServiceTracer) && options.UseTracing; return(new HttpHandlerOptions(options.AllowAutoRedirect, options.UseCookieContainer, useTracing, options.UseProxy)); }
public HttpHandlerOptions Create(FileHttpHandlerOptions options) { var useTracing = _tracer != null && options.UseTracing; return(new HttpHandlerOptions(options.AllowAutoRedirect, options.UseCookieContainer, useTracing, options.UseProxy)); }
public FileGlobalConfiguration() { ServiceDiscoveryProvider = new FileServiceDiscoveryProvider(); RateLimitOptions = new FileRateLimitOptions(); LoadBalancerOptions = new FileLoadBalancerOptions(); QoSOptions = new FileQoSOptions(); HttpHandlerOptions = new FileHttpHandlerOptions(); }
public HttpHandlerOptions Create(FileHttpHandlerOptions options) { var useTracing = _tracer != null && options.UseTracing; //be sure that maxConnectionPerServer is in correct range of values int maxConnectionPerServer = (options.MaxConnectionsPerServer > 0) ? maxConnectionPerServer = options.MaxConnectionsPerServer : maxConnectionPerServer = int.MaxValue; return(new HttpHandlerOptions(options.AllowAutoRedirect, options.UseCookieContainer, useTracing, options.UseProxy, maxConnectionPerServer)); }