Пример #1
0
 /// <summary>
 ///  追加普通管道
 /// </summary>
 /// <typeparam name="TOut"></typeparam>
 /// <typeparam name="TNextOut"></typeparam>
 /// <typeparam name="TNextPara"></typeparam>
 /// <typeparam name="TNextRes"></typeparam>
 /// <param name="pipe"></param>
 /// <param name="nextPipe"></param>
 /// <returns></returns>
 public static BaseFourWayPipe <TOut, TNextPara, TNextRes, TNextOut> Append <TOut, TNextPara, TNextRes, TNextOut>(
     this IPipeAppender <TOut> pipe,
     BaseFourWayPipe <TOut, TNextPara, TNextRes, TNextOut> nextPipe)
 {
     pipe.InterAppend(nextPipe);
     return(nextPipe);
 }
Пример #2
0
 /// <summary>
 /// 根据首位两个管道建立流体
 /// </summary>
 /// <typeparam name="TIn"></typeparam>
 /// <typeparam name="TOut"></typeparam>
 /// <param name="startPipe"></param>
 /// <param name="endPipe"></param>
 /// <param name="flowPipeCode"></param>
 /// <param name="option"></param>
 /// <returns></returns>
 public static EmptyEntryPipeline <TEndOut> AsPipeline <TEndIn, TEndPara, TEndResult, TEndOut>(this BaseInPipePart <Empty> startPipe,
                                                                                               BaseFourWayPipe <TEndIn, TEndPara, TEndResult, TEndOut> endPipe,
                                                                                               string flowPipeCode, PipeLineOption option = null)
 {
     return(new EmptyEntryPipeline <TEndOut>(flowPipeCode, startPipe, endPipe, option));
 }
Пример #3
0
 /// <summary>
 /// 绑定异常错误重试
 /// </summary>
 /// <typeparam name="TIn"></typeparam>
 /// <typeparam name="TPara"></typeparam>
 /// <typeparam name="TResult"></typeparam>
 /// <typeparam name="TOut"></typeparam>
 /// <param name="pipe"></param>
 /// <param name="option"></param>
 /// <returns></returns>
 public static BaseFourWayPipe <TIn, TPara, TResult, TOut> ErrorRetry <TIn, TPara, TResult, TOut>(this BaseFourWayPipe <TIn, TPara, TResult, TOut> pipe, FlowEventOption option)
 {
     pipe.SetErrorRetry(option);
     return(pipe);
 }