London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class RouteRedirector

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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.Internal
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
[ServiceConfiguration]
public class RouteRedirector

Constructors

RouteRedirector(ISiteDefinitionResolver)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the RouteRedirector class.

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

The site definition resolver.

Methods

EvaluateRequest(SegmentContext)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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