internal override void LinkBuffers(DataFlowComponent successor, LinkPredicates linkPredicate) { var s = successor as IDataFlowDestination <ETLBoxError>; var lp = new BufferLinker <ETLBoxError>(linkPredicate); lp.LinkBlocksWithPredicates(SourceBlock, s.TargetBlock); }
internal override void LinkBuffers(DataFlowComponent successor, LinkPredicates linkPredicates) { var s = successor as IDataFlowDestination <TOutput>; var linker = new BufferLinker <TOutput>(linkPredicates); linker.LinkBlocksWithPredicates(SourceBlock, s.TargetBlock); }
protected IDataFlowSource <T> InternalLinkTo <T>(IDataFlowDestination target, object predicate = null, object voidPredicate = null) { DataFlowComponent tgt = target as DataFlowComponent; LinkPredicates.Add(tgt, new LinkPredicates(predicate, voidPredicate)); this.Successors.Add(tgt); tgt.Predecessors.Add(this); var res = target as IDataFlowSource <T>; return(res); }
internal virtual void LinkBuffers(DataFlowComponent successor, LinkPredicates predicate) { //No linking by default }
protected void CreateLinkInInternalFlow(DataFlowComponent parent) { Parent = parent; InternalLinkTo <TInput>(parent as IDataFlowDestination); }
public ActionJoinTarget(DataFlowComponent parent, Action <TInput> action) { Action = action; CreateLinkInInternalFlow(parent); }