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
Inherited Members
Namespace: EPiServer.Web.Routing.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
[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. |