SaaS CMS has officially launched! Learn more now.

Class ContentSegmentLoader

Loads routing segments for contentlink

Inheritance
System.Object
ContentSegmentLoader
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.Segments
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public class ContentSegmentLoader : IRoutingSegmentLoader

Constructors

ContentSegmentLoader(IContentRepository, LanguageSelectorFactory, TemplateResolver)

Initializes a new instance of the ContentSegmentLoader class with required parameters.

Declaration
public ContentSegmentLoader(IContentRepository contentRepository, LanguageSelectorFactory languageSelectorFactory, TemplateResolver templateResolver)
Parameters
Type Name Description
IContentRepository contentRepository

The content repository.

LanguageSelectorFactory languageSelectorFactory

The language selector factory used to select page language.

TemplateResolver templateResolver

The template resolver.

Methods

GetRoutingSegments(ContentReference, String)

Gets route segment information for a content.

Declaration
public IEnumerable<IRoutable> GetRoutingSegments(ContentReference contentLink, string language)
Parameters
Type Name Description
ContentReference contentLink

The content link.

System.String language

The language.

Returns
Type Description
System.Collections.Generic.IEnumerable<IRoutable>

An enumeration of routing segments matching the requested context.

Implements

Extension Methods