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);
        }
Esempio n. 2
0
 public static Pipe ValidateParameters <T>(this Pipe pipeline) where T : class
 {
     pipeline.Use <ValidationPipeAction <T> >();
     return(pipeline);
 }
Esempio n. 3
0
 public static Pipe ValidateRequest(this Pipe pipeline)
 {
     pipeline.Use <ValidationPipeAction <object> >();
     return(pipeline);
 }