Esempio n. 1
0
 private void InitlizaReRoute()
 {
     QoSOptions            = new QoSOptions(ReRouteId);
     CacheOptions          = new CacheOptions(ReRouteId);
     LoadBalancerOptions   = new LoadBalancerOptions(ReRouteId);
     RateLimitOptions      = new RateLimitRule(ReRouteId);
     AuthenticationOptions = new AuthenticationOptions(ReRouteId);
     HttpHandlerOptions    = new HttpHandlerOptions(ReRouteId);
     SecurityOptions       = new SecurityOptions(ReRouteId);
 }
Esempio n. 2
0
 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);
 }