Class ContentSegmentLoader
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Loads routing segments for contentlink
Inheritance
System.Object
ContentSegmentLoader
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.Segments.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[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. |