public RemapHandler ( IHttpHandler handler ) : void | ||
handler | IHttpHandler | |
return | void |
public void RemapHandler (IHttpHandler handler)
{
if (MapRequestHandlerDone)
throw new InvalidOperationException ("The RemapHandler method was called after the MapRequestHandler event occurred.");
Handler = handler;
}
void Pipeline_PostAuthorizeRequestStart(System.Web.IHttpModule sender, System.Web.HttpContext context) { if (HandlesRequest(context, c)) { //Communicate to the MVC plugin this request should not be affected by the UrlRoutingModule. context.Items[c.Pipeline.StopRoutingKey] = true; //Provide the request handler context.RemapHandler(new EndpointPluginPageHandler(ProcessRequest)); } }