Пример #1
0
        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));
        }
Пример #3
0
 public FileGlobalConfiguration()
 {
     ServiceDiscoveryProvider = new FileServiceDiscoveryProvider();
     RateLimitOptions         = new FileRateLimitOptions();
     LoadBalancerOptions      = new FileLoadBalancerOptions();
     QoSOptions         = new FileQoSOptions();
     HttpHandlerOptions = new FileHttpHandlerOptions();
 }
Пример #4
0
        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));
        }