public static Pipe UseDefaultAction(this Pipe pipe, bool isResumePipeline, Func <PipeRequest, PipeResponse> action)
        {
            Contract.NotNull(pipe, "pipe");

            DefaultPipeAction defaultAction = new DefaultPipeAction(isResumePipeline, action);

            pipe.Use(defaultAction);
            return(pipe);
        }
Пример #2
0
 public static Pipe ValidateParameters <T>(this Pipe pipeline) where T : class
 {
     pipeline.Use <ValidationPipeAction <T> >();
     return(pipeline);
 }
Пример #3
0
 public static Pipe ValidateRequest(this Pipe pipeline)
 {
     pipeline.Use <ValidationPipeAction <object> >();
     return(pipeline);
 }