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; }
public Service(string name, Int32? port, PortList portList, string protocol, WebService webService) : this(name, port, portList, protocol) { this.webService = webService; }