November Happy Hour will be moved to Thursday December 5th.

Class RouteRedirector

This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Inheritance
System.Object
RouteRedirector
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
[ServiceConfiguration]
public class RouteRedirector

Constructors

RouteRedirector(SiteDefinitionResolver)

Initializes a new instance of the RouteRedirector class.

Declaration
public RouteRedirector(SiteDefinitionResolver siteDefinitionResolver)
Parameters
Type Name Description
SiteDefinitionResolver siteDefinitionResolver

The site definition resolver.

Methods

EvaluateRequest(SegmentContext)

Evaluates if the currently requested route should be redirected to a new location. If its found to require a redirect, the redirect method on the provided context is called.

Declaration
public virtual void EvaluateRequest(SegmentContext context)
Parameters
Type Name Description
SegmentContext context

The context of the current route.

Extension Methods