Exemplo n.º 1
0
 public override void VisitBetaNode <TLeft, TRight>(LogContext context, IBetaNode <TLeft, TRight> node)
 {
     using (_log.BeginScope <BetaNode <TLeft, TRight> >())
     {
         base.VisitBetaNode(context, node);
     }
 }
        public override void VisitBetaNode <TLeft, TRight>(GraphContext context, IBetaNode <TLeft, TRight> node)
        {
            var nodeInfo = new Node(Interlocked.Increment(ref _id), node, typeof(TRight), "beta");

            context.Add(nodeInfo);
            context.Link(nodeInfo, new Node(-1, node.MemoryNode, typeof(TRight), ""));

            base.VisitBetaNode(context, node);
        }
Exemplo n.º 3
0
 public virtual void VisitBetaNode <TLeft, TRight>(TContext context, IBetaNode <TLeft, TRight> node)
     where TLeft : class
     where TRight : class
 {
     VisitBetaMemoryNode(context, node.MemoryNode);
 }
 public RuntimeBetaBuilderContext(FactDeclaration <TRight> declaration, IBetaNode <TLeft, TRight> currentNode)
 {
     Declaration   = declaration;
     CurrentNode   = currentNode;
     CurrentSource = currentNode.MemoryNode;
 }