//- @ProcessRequest -// public void ProcessRequest(HttpContext context) { Route(context); //+ List <MinimaComponentSetting.MinimaInfo> parameterList = MinimaComponentSetting.CurrentComponentSetting.GetParameterList(); MinimaComponentSetting.MinimaInfo currentInfo = parameterList.FirstOrDefault(u => u.WebSection != null && Http.Url.AbsolutePath.ToLower().Contains(u.WebSection.ToLower())); if (currentInfo != null) { context.Items.Add("BlogPage", currentInfo.Page); } else { currentInfo = parameterList.FirstOrDefault(u => u.WebSection != null && u.WebSection.Equals("Root", StringComparison.InvariantCultureIgnoreCase)); if (currentInfo != null) { context.Items.Add("BlogPage", currentInfo.Page); } else { context.Items.Add("BlogPage", "~/default.aspx"); } } //+ IHttpHandler h = System.Web.UI.PageParser.GetCompiledPageInstance(ContextItemSet.BlogPage, null, context); h.ProcessRequest(context); }
//- @OnPreHttpHandlerExecute -// public override void OnPreHttpHandlerExecute(HttpContext context, params Object[] parameterArray) { MinimaComponentSetting.MinimaInfo currentInfo = MinimaComponentSetting.CurrentComponentSetting.GetParameterList().FirstOrDefault(u => u.WebSection != null && Themelia.Web.WebSection.Current.ToLower().Contains(u.WebSection.ToLower())); if (currentInfo != null) { context.Items.Add("BlogGuid", currentInfo.BlogGuid); } }