Share via


MvcHandler Class

Definition

Selects the controller that will handle an HTTP request.

public class MvcHandler : System.Web.IHttpAsyncHandler, System.Web.IHttpHandler, System.Web.SessionState.IRequiresSessionState
type MvcHandler = class
    interface IHttpAsyncHandler
    interface IHttpHandler
    interface IRequiresSessionState
Public Class MvcHandler
Implements IHttpAsyncHandler, IHttpHandler, IRequiresSessionState
Inheritance
MvcHandler
Implements

Constructors

MvcHandler(RequestContext)

Initializes a new instance of the MvcHandler class.

Fields

MvcVersionHeaderName

Contains the header name of the ASP.NET MVC version.

Properties

DisableMvcResponseHeader

Gets or sets a value that indicates whether the MVC response header is disabled.

IsReusable

Gets a value that indicates whether another request can use the IHttpHandler instance.

RequestContext

Gets the request context.

Methods

AddVersionHeader(HttpContextBase)

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(IAsyncResult)

Called by ASP.NET when asynchronous request processing has ended.

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.

Explicit Interface Implementations

IHttpAsyncHandler.BeginProcessRequest(HttpContext, AsyncCallback, Object)

Called by ASP.NET to begin asynchronous request processing using the base HTTP context.

IHttpAsyncHandler.EndProcessRequest(IAsyncResult)

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(HttpContext)

Enables processing of HTTP Web requests by a custom HTTP handler that implements the IHttpHandler interface.

Applies to