/// <summary> /// 添加下个一管道 /// </summary> /// <param name="newHandler"></param> /// <returns></returns> public OutputPipeLine <TInput, TOutput> AddHandler(OutputHandler <TInput, TOutput> newHandler) { var currentHandle = _currentHandler; while (currentHandle != null) { if (currentHandle.Next == null) { currentHandle.Next = newHandler; break; } currentHandle = currentHandle.Next; } return(this); }
public OutputPipeLine(OutputHandler <TInput, TOutput> currentHandler) { _currentHandler = currentHandler; }