Class DefaultUrlSegmentRouter
Default IUrl
Inheritance
System.Object
DefaultUrlSegmentRouter
Implements
Namespace: EPiServer.Web.Routing.Segments.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class DefaultUrlSegmentRouter : Object, IUrlSegmentRouter
Constructors
DefaultUrlSegmentRouter(IContentLoader, IRoutingSegmentLoader)
Initializes a new instance of the Default
Declaration
public DefaultUrlSegmentRouter(IContentLoader contentQueryable, IRoutingSegmentLoader routingSegmentLoader)
Parameters
Type | Name | Description |
---|---|---|
IContent |
contentQueryable | The content queryable. |
IRouting |
routingSegmentLoader | The routing segment loader. |
Properties
ContentLoader
Declaration
protected IContentLoader ContentLoader { get; set; }
Property Value
Type | Description |
---|---|
IContent |
Methods
GetRoutingSegment(ContentReference, String)
Gets the routing specific data for a node.
Declaration
public virtual IRoutable GetRoutingSegment(ContentReference contentLink, string preferredLanguageBranch)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
System. |
preferredLanguageBranch | The preferred language branch. |
Returns
Type | Description |
---|---|
IRoutable |
ResolveContentForIncoming(ContentReference, String, String)
Declaration
public virtual IContent ResolveContentForIncoming(ContentReference contentLink, string urlSegment, string preferredLanguage)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | |
System. |
urlSegment | |
System. |
preferredLanguage |
Returns
Type | Description |
---|---|
IContent |