public static HttpHandlerOptions Default() { var options = new HttpHandlerOptions(); options.ApplyAllowAutoRedirect(false); options.ApplyCookieContainer(false); options.ApplyHttpTracing(false); options.ApplyHttpProxy(false); return(options); }
private void Init() { ServiceDiscoveryProvider = new ServiceDiscoveryProvider(ItemId); RateLimitOptions = new RateLimitOptions(ItemId); QoSOptions = new QoSOptions(null, null, 30000); QoSOptions.SetItemId(ItemId); LoadBalancerOptions = new LoadBalancerOptions("LeastConnection", "SessionId", null); LoadBalancerOptions.SetItemId(ItemId); HttpHandlerOptions = HttpHandlerOptions.Default(); HttpHandlerOptions.SetItemId(ItemId); IsActive = true; IsDeleted = false; }
private void InitlizaReRoute() { QoSOptions = new QoSOptions(null, null, 30000); QoSOptions.SetReRouteId(ReRouteId); CacheOptions = new CacheOptions(ReRouteId); LoadBalancerOptions = new LoadBalancerOptions("LeastConnection", "SessionId", null); LoadBalancerOptions.SetReRouteId(ReRouteId); RateLimitOptions = new RateLimitRule("", null, null); RateLimitOptions.SetReRouteId(ReRouteId); AuthenticationOptions = new AuthenticationOptions(ReRouteId); HttpHandlerOptions = HttpHandlerOptions.Default(); HttpHandlerOptions.SetReRouteId(ReRouteId); SecurityOptions = new SecurityOptions(ReRouteId); }