Пример #1
0
        public static HiContext Create(HttpContext context, bool isReWritten)
        {
            HiContext hiContext = new HiContext(context);

            hiContext.IsUrlReWritten = isReWritten;
            HiContext.SaveContextToStore(hiContext);
            return(hiContext);
        }
Пример #2
0
        public static HiContext Create(HttpContext context, UrlReWriterDelegate rewriter)
        {
            HiContext hiContext = new HiContext(context);

            HiContext.SaveContextToStore(hiContext);
            if (null != rewriter)
            {
                hiContext.IsUrlReWritten = rewriter(context);
            }
            return(hiContext);
        }