Ejemplo 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);
 }
 private void Init()
 {
     ServiceDiscoveryProvider = new ServiceDiscoveryProvider(ItemId);
     RateLimitOptions         = new RateLimitOptions(ItemId);
     QoSOptions          = new QoSOptions(ItemId);
     LoadBalancerOptions = new LoadBalancerOptions(ItemId);
     HttpHandlerOptions  = new HttpHandlerOptions(ItemId);
     IsActive            = true;
     IsDeleted           = false;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
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);
 }