Try our conversational search powered by Generative AI!

Class ContentSegmentLoader

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(IRoutingSegmentLoader), Lifecycle = ServiceInstanceScope.Singleton)]
public class ContentSegmentLoader : IRoutingSegmentLoader

Constructors

ContentSegmentLoader(IContentRepository, TemplateResolver)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ContentSegmentLoader class with required parameters.

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

The content repository.

TemplateResolver templateResolver

The template resolver.

Methods

GetRoutingSegments(ContentReference, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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