Table of Contents

Class MvcRouteHandler

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Creates an object that implements the IHttpHandler interface and passes the request context to it.

public class MvcRouteHandler : IRouteHandler
Inheritance
MvcRouteHandler
Implements
IRouteHandler
Inherited Members

Constructors

MvcRouteHandler()

Initializes a new instance of the MvcRouteHandler class.

public MvcRouteHandler()

MvcRouteHandler(IControllerFactory)

Initializes a new instance of the MvcRouteHandler class using the specified factory controller object.

public MvcRouteHandler(IControllerFactory controllerFactory)

Parameters

controllerFactory IControllerFactory

The controller factory.

Methods

GetHttpHandler(RequestContext)

Returns the HTTP handler by using the specified HTTP context.

protected virtual IHttpHandler GetHttpHandler(RequestContext requestContext)

Parameters

requestContext RequestContext

The request context.

Returns

IHttpHandler

The HTTP handler.

GetSessionStateBehavior(RequestContext)

Returns the session behavior.

protected virtual SessionStateBehavior GetSessionStateBehavior(RequestContext requestContext)

Parameters

requestContext RequestContext

The request context.

Returns

SessionStateBehavior

The session behavior.