public virtual void PostMapRequestHandler (HttpContextBase context) { #if !NET_4_0 if (context == null) throw new ArgumentNullException ("context"); // FIXME: find out what it actually does. IHttpHandler h = (IHttpHandler) context.Items [module_identity_key]; if (h != null) context.Handler = h; string original_path = context.Items [original_path_key] as string; if (!String.IsNullOrEmpty (original_path)) context.RewritePath (original_path); #endif }
public void PostMapRequestHandlerNoPath () { var m = new UrlRoutingModule (); RouteTable.Routes.Add (new MyRoute ("foo/bar", new MyRouteHandler ())); // ... huh? no NIE? what does it do then? m.PostMapRequestHandler (new HttpContextStub2 ("~/foo/bar", null)); }