Esempio n. 1
0
        public void SymbolModified <TTarget>(
            INodePathService <TTarget> nodePathService1,
            TTarget target,
            IDictionary <string, string> tags,
            object pluginMetadata = null)
        {
            var snapshotTarget = nodePathService1.GetSingleNodeSnapshot(target);

            this.metadataWriter.Write(new Modified(snapshotTarget, this.pipelineExecutionInfo.CurrentBatchIndex, this.pipelineExecutionInfo.CurrentStageName, this.pluginId, pluginMetadata, tags));
        }
Esempio n. 2
0
        public void SymbolGenerated <TSubject, TFrom>(
            INodePathService <TSubject> nodePathService1,
            TSubject subject,
            INodePathService <TFrom> nodePathService2,
            TFrom from,
            IDictionary <string, string> tags,
            object pluginMetadata = null)
        {
            var snapshotFrom    = nodePathService2.GetSingleNodeSnapshot(from);
            var snapshotSubject = nodePathService1.GetSubTreeSnapshot(subject);

            this.metadataWriter.Write(new Generated(snapshotSubject, this.pipelineExecutionInfo.CurrentBatchIndex, this.pipelineExecutionInfo.CurrentStageName, this.pluginId, pluginMetadata, tags, snapshotFrom));
        }
Esempio n. 3
0
        public void SymbolsBound <TNode1, TNode2>(
            INodePathService <TNode1> nodePathService1,
            TNode1 node1,
            INodePathService <TNode2> nodePathService2,
            TNode2 node2,
            IDictionary <string, string> tags,
            object pluginMetadata = null)
        {
            var snapshot1 = nodePathService1.GetSingleNodeSnapshot(node1);
            var snapshot2 = nodePathService2.GetSingleNodeSnapshot(node2);

            if (snapshot1 != null && snapshot2 != null)
            {
                this.metadataWriter.Write(new Bound(snapshot1, snapshot2, this.pipelineExecutionInfo.CurrentBatchIndex, this.pipelineExecutionInfo.CurrentStageName, this.pluginId, pluginMetadata, tags));
            }
        }
Esempio n. 4
0
        public void SymbolSourcingFrom <TNode>(
            INodePathService <TNode> nodePathService1,
            TNode from,
            INodePathService <TNode> nodePathService2,
            TNode subject,
            IDictionary <string, string> tags,
            object pluginMetadata = null)
        {
            var snapshotFrom    = nodePathService1.GetSingleNodeSnapshot(from);
            var snapshotSubject = nodePathService2.GetSubTreeSnapshot(subject);

            this.metadataWriter.Write(
                new SourcingFrom(
                    snapshotFrom,
                    snapshotSubject,
                    this.pipelineExecutionInfo.CurrentBatchIndex,
                    this.pipelineExecutionInfo.CurrentStageName,
                    this.pluginId,
                    pluginMetadata,
                    tags));
        }