Example #1
0
 public lbdn(string name, LbMethodEnum lb_method, string topology, poollink[] pools)
 {
     this.auth_zones  = new zone_auth[0];
     this.disable     = false;
     this.lb_method   = lb_method;
     base.name        = name;
     this.patterns    = new string[0];
     this.persistence = 0;
 }
Example #2
0
 public pool(string name, LbMethodEnum lb_preferred_method)
 {
     this.disable = false;
     this.lb_alternate_topology = String.Empty;
     this.lb_preferred_method   = lb_preferred_method;
     this.lb_preferred_topology = String.Empty;
     this.monitors = new tcpmonitor[0];
     this.name     = name;
     this.use_ttl  = false;
 }
Example #3
0
 public lbdn(string name, LbMethodEnum lb_method)
 {
     if (lb_method != LbMethodEnum.TOPOLOGY)
     {
         this.auth_zones  = new zone_auth[0];
         this.disable     = false;
         this.lb_method   = lb_method;
         base.name        = name;
         this.patterns    = new string[0];
         this.persistence = 0;
     }
     else
     {
         throw new ArgumentException("You must specify topology and pools when the load balancing method is \"Topology\". Use a different constructor.");
     }
 }