コード例 #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));
        }
コード例 #2
0
        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));
        }