Ejemplo n.º 1
0
        static RequestPipeline BuildPipeLine(UserRequest userRequest, UserResponse userResponse)
        {
            RequestPipeline pipeline = new RequestPipeline(userRequest, userResponse);

            pipeline.Add(new StaticRquestHandler(userRequest, userResponse));
            pipeline.Add(new AuthenticateRquestHandler(userRequest, userResponse));
            pipeline.Add(new AuthorizeRquestHandler(userRequest, userResponse));

            return(pipeline);
        }
Ejemplo n.º 2
0
 public void Add(RequestPipeline rp)
 {
     if (next != null)
     {
         next.Add(rp);
     }
     else
     {
         next = rp;
     }
 }