Selects the controller that will handle an HTTP request.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Thetype exposes the following members.
|AddVersionHeader||Adds the version header by using the specified HTTP context.|
|BeginProcessRequest(HttpContext, AsyncCallback, Object)||Called by ASP.NET to begin asynchronous request processing.|
|BeginProcessRequest(HttpContextBase, AsyncCallback, Object)||Called by ASP.NET to begin asynchronous request processing using the base HTTP context.|
|EndProcessRequest||Called by ASP.NET when asynchronous request processing has ended.|
|Equals||(Inherited from Object.)|
|Finalize||(Inherited from Object.)|
|GetHashCode||(Inherited from Object.)|
|GetType||(Inherited from Object.)|
|MemberwiseClone||(Inherited from Object.)|
|ProcessRequest(HttpContext)||Processes the request by using the specified HTTP request context.|
|ProcessRequest(HttpContextBase)||Processes the request by using the specified base HTTP request context.|
|ToString||(Inherited from Object.)|
|IHttpAsyncHandler::BeginProcessRequest||Called by ASP.NET to begin asynchronous request processing using the base HTTP context.|
|IHttpAsyncHandler::EndProcessRequest||Called by ASP.NET when asynchronous request processing has ended.|
|IHttpHandler::IsReusable||Gets a value that indicates whether another request can use the IHttpHandler instance.|
|IHttpHandler::ProcessRequest||Enables processing of HTTP Web requests by a custom HTTP handler that implements the IHttpHandler interface.|
MVC includes the following handler types:
. This handler is responsible for initiating the ASP.NET pipeline for an MVC application. It receives a Controller instance from the MVC controller factory; this controller handles further processing of the request. Note that even though implements IHttpHandler, it cannot be mapped as a handler (for example, to the .mvc file-name extension) because the class does not support a parameterless constructor. (Its only constructor requires a RequestContext object.)
MvcRouteHandler. This class implements IRouteHandler, therefore it can integrate with ASP.NET routing. The MvcRouteHandler class associates the route with an instance. A MvcRouteHandler instance is registered with routing when you use the MapRoute method. When the MvcRouteHandler class is invoked, the class generates an instance using the current RequestContext instance. It then delegates control to the new instance.
MvcHttpHandler. This handler is used to facilitate direct handler mapping without going through the routing module. This is useful if you want to map a file-name extension such as .mvc directly to an MVC handler. Internally, MvcHttpHandler performs the same tasks that ASP.NET routing ordinarily performs (going through MvcRouteHandler and ). However, it performs these tasks as a handler instead of as a module. This handler is not typically used when the UrlRoutingModule is enabled for all requests.