Exemplo n.º 1
0
 public Fact GetFact(FactReference reference) => factsByReference[reference];
Exemplo n.º 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));
        }
Exemplo n.º 3
0
 private Fact(FactReference reference, ImmutableList <Field> fields, ImmutableList <Predecessor> predecessors)
 {
     Reference    = reference;
     Fields       = fields;
     Predecessors = predecessors;
 }
Exemplo n.º 4
0
 public PredecessorSingle(string role, FactReference reference) :
     base(role)
 {
     Reference = reference;
 }