public Linkage(string name, string path, File file, LinkageCategoryEnum category) { if (string.IsNullOrEmpty(name)) throw new ArgumentException("Linkage must have a name node."); if (string.IsNullOrEmpty(path)) throw new ArgumentException("Linkage must have a path node."); if (file == null) throw new ArgumentException("Linkage must have a File node."); if (category == LinkageCategoryEnum.unknown) throw new ArgumentException("Linkage must have a category attribute."); this.name = name; this.path = path; this.file = file; this.category = category; }
public Target(Node node, User user, Process process, Service service, File[] file, string ident, UynEnum decoy, string i_face) { this.ident = string.IsNullOrEmpty(ident) ? "0" : ident; this.decoy = decoy; this.i_face = i_face; this.node = node; this.user = user; this.process = process; this.service = service; this.file = file; }
public Target(Node node, User user, Process process, Service service, File file, string ident, UynEnum decoy, string i_face) : this(node, user, process, service, new[] {file}, ident, decoy, i_face) { }