示例#1
0
        /// <summary>
        /// Processes the data object by calling Execute on each step in the step list
        /// passing in the same data object for each call.
        /// </summary>
        /// <param name="data">The data object to process.</param>
        /// <param name="stopOnFailure">A Flag to indicate if the processing should stop if any of the
        /// steps return false.</param>
        /// <returns>True if all the processors returned true, false otherwise.</returns>
        public bool ProcessFilter(System.Web.HttpContext context)
        {
            filters.ProcessRequest(context);
            if (processor != null)
            {
                processor.ProcessRequest(context);
            }

            return(true);
        }
示例#2
0
 public override void ProcessRequest(System.Web.HttpContext context)
 {
     this.viewpath = this.viewpath ?? context.Request.Url.AbsolutePath;
     System.Web.IHttpHandler viewhandler = this.GetHandlerFromWebPage(this.viewpath + ".cshtml");
     if (viewhandler == null)
     {
         viewhandler = this.GetHandlerFromWebForm(this.viewpath + ".aspx", context);
     }
     if (viewhandler == null)
     {
         throw new ArgumentException("未找到视图" + this.viewpath);
     }
     context.Items[HttpContextItemWrapper.ModelFlag] = this.model;
     viewhandler.ProcessRequest(context);
 }