public Service(string name, Int32? port, PortList portList, string protocol, SnmpService snmpService, WebService webService, string ident)
     : this(name, port, portList, protocol)
 {
     if ((snmpService != null) && (webService != null))
         throw new ArgumentException("Service can have either SNMPService or WebService node.");
     this.snmpService = snmpService;
     this.webService = webService;
     this.ident = string.IsNullOrEmpty(ident) ? "0" : ident;
 }
Example #2
0
 public Service(string name, Int32?port, PortList portList, string protocol, SnmpService snmpService, WebService webService, string ident)
     : this(name, port, portList, protocol)
 {
     if ((snmpService != null) && (webService != null))
     {
         throw new ArgumentException("Service can have either SNMPService or WebService node.");
     }
     this.snmpService = snmpService;
     this.webService  = webService;
     this.ident       = string.IsNullOrEmpty(ident) ? "0" : ident;
 }
Example #3
0
 public Service(string name, Int32?port, PortList portList, string protocol, SnmpService snmpService)
     : this(name, port, portList, protocol)
 {
     this.snmpService = snmpService;
 }
 public Service(string name, Int32? port, PortList portList, string protocol, SnmpService snmpService)
     : this(name, port, portList, protocol)
 {
     this.snmpService = snmpService;
 }