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