Class CrossSiteContentRouteContraint
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
System.Object
CrossSiteContentRouteContraint
Implements
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: 8.11.0Syntax
public class CrossSiteContentRouteContraint : IContentRouteConstraint
Constructors
CrossSiteContentRouteContraint(SiteDefinitionResolver)
Creates a new instance of CrossSiteContentRouteContraint
Declaration
public CrossSiteContentRouteContraint(SiteDefinitionResolver siteDefinitionResolver)
Parameters
Type | Name | Description |
---|---|---|
SiteDefinitionResolver | siteDefinitionResolver | The site definition to use. |
Methods
Match(Route, SegmentContext, String)
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. |