Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 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)
 {
 }