Class CrossSiteContentRouteContraint
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A route constraint used for the content route starting from RootPage. It validates that the routed content is not under another site than current resolved site.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Web.Routing.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public class CrossSiteContentRouteContraint : IContentRouteConstraint
Constructors
CrossSiteContentRouteContraint(ISiteDefinitionResolver)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates a new instance of CrossSiteContentRouteContraint
Declaration
public CrossSiteContentRouteContraint(ISiteDefinitionResolver siteDefinitionResolver)
Parameters
Type | Name | Description |
---|---|---|
ISiteDefinitionResolver | siteDefinitionResolver | The site definition to use. |
Methods
Match(Route, SegmentContext, String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Evaluates that the routed content does not belong to another site than the current resolved site.
Declaration
public bool Match(Route route, SegmentContext segmentContext, string parameterName)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.Route | route | The current route |
SegmentContext | segmentContext | The routing context |
System.String | parameterName | The name of the paramenter |
Returns
Type | Description |
---|---|
System.Boolean | true if the routed data matches the constraint else false. |