Class ClassicLinkRoute

A route that can be added to support incoming routing of classic links like for example "/templates/Page.aspx?id=12&epslanguage=sv"

Inheritance
System.Object
ClassicLinkRoute
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(IncludeServiceAccessor = false)]
public class ClassicLinkRoute : Route

Constructors

ClassicLinkRoute()

Initializes a new instance of the ClassicLinkRoute class.

Declaration
public ClassicLinkRoute()

ClassicLinkRoute(IRouteHandler, IPermanentLinkMapper, IUpdateCurrentLanguage)

Initializes a new instance of the ClassicLinkRoute class.

Declaration
[Obsolete("Use alternative constructor")]
public ClassicLinkRoute(IRouteHandler routeHandler, IPermanentLinkMapper permanentLinkMapper, IUpdateCurrentLanguage updateCurrentLanguage)
Parameters
Type Name Description
System.Web.Routing.IRouteHandler routeHandler

The object that processes requests for the route.

IPermanentLinkMapper permanentLinkMapper

The permanent link mapper.

IUpdateCurrentLanguage updateCurrentLanguage

The update current language.

ClassicLinkRoute(IRouteHandler, IPermanentLinkMapper, IUpdateCurrentLanguage, IModuleResourceResolver)

Initializes a new instance of the ClassicLinkRoute class.

Declaration
public ClassicLinkRoute(IRouteHandler routeHandler, IPermanentLinkMapper permanentLinkMapper, IUpdateCurrentLanguage updateCurrentLanguage, IModuleResourceResolver moduleResourceResolver)
Parameters
Type Name Description
System.Web.Routing.IRouteHandler routeHandler

The object that processes requests for the route.

IPermanentLinkMapper permanentLinkMapper

The permanent link mapper.

IUpdateCurrentLanguage updateCurrentLanguage

The update current language.

IModuleResourceResolver moduleResourceResolver

The module resource resolver

Methods

GetRouteData(HttpContextBase)

Returns information about the requested route.

Declaration
public override RouteData GetRouteData(HttpContextBase httpContext)
Parameters
Type Name Description
System.Web.HttpContextBase httpContext

An object that encapsulates information about the HTTP request.

Returns
Type Description
System.Web.Routing.RouteData

An object that contains the values from the route definition.

GetVirtualPath(RequestContext, RouteValueDictionary)

Declaration
public override VirtualPathData GetVirtualPath(RequestContext requestContext, RouteValueDictionary values)
Parameters
Type Name Description
System.Web.Routing.RequestContext requestContext
System.Web.Routing.RouteValueDictionary values
Returns
Type Description
System.Web.Routing.VirtualPathData

Extension Methods