Example #1
0
 public Fact GetFact(FactReference reference) => factsByReference[reference];
Example #2
0
        public static Fact Create(string type, ImmutableList <Field> fields, ImmutableList <Predecessor> predecessors)
        {
            var reference = new FactReference(type, ComputeHash(fields, predecessors));

            return(new Fact(reference, fields, predecessors));
        }
Example #3
0
 private Fact(FactReference reference, ImmutableList <Field> fields, ImmutableList <Predecessor> predecessors)
 {
     Reference    = reference;
     Fields       = fields;
     Predecessors = predecessors;
 }
Example #4
0
 public PredecessorSingle(string role, FactReference reference) :
     base(role)
 {
     Reference = reference;
 }