Exemplo n.º 1
0
        private void OnPreMapRequestHandler(object sender, EventArgs e)
        {
            var context = HttpContext.Current;


            var request = context.Request;

            var result = HtmlProviders.MapRequest(new HttpRequestWrapper(request));

            if (result == null)
            {
                return;
            }


            var handler = result.Handler;

            var httpHandler = handler as JumonyHandler;

            if (httpHandler == null)
            {
                httpHandler = new HtmlHandlerWrapper(handler);
            }


            context.SetMapping(result);

            context.RemapHandler(httpHandler);
        }
Exemplo n.º 2
0
        private void OnPreMapRequestHandler( object sender, EventArgs e )
        {
            var context = HttpContext.Current;

              var request = context.Request;

              var result = HtmlProviders.MapRequest( new HttpRequestWrapper( request ) );

              if ( result == null )
            return;

              var handler = result.Handler;

              var httpHandler = handler as JumonyHandler;

              if ( httpHandler == null )
            httpHandler = new HtmlHandlerWrapper( handler );

              context.SetMapping( result );

              context.RemapHandler( httpHandler );
        }