Example #1
0
        private static void UnlinkFacts(ISessionInternal session, Activation activation)
        {
            var linkedKeys = session.GetLinkedKeys(activation).ToList();

            foreach (var key in linkedKeys)
            {
                var linkedFact = session.GetLinked(activation, key);
                session.RetractLinked(activation, key, linkedFact);
            }
        }
Example #2
0
 public void RetractAllLinked(IEnumerable <KeyValuePair <object, object> > keyedFacts)
 {
     _session.RetractLinked(Activation, keyedFacts);
 }
Example #3
0
 public void RetractLinked(object key, object fact)
 {
     _session.RetractLinked(Activation, key, fact);
 }