Class ContentSegmentLoader
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
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ServiceConfiguration(typeof(IRoutingSegmentLoader), Lifecycle = ServiceInstanceScope.Singleton)]
public class ContentSegmentLoader : IRoutingSegmentLoader
Constructors
ContentSegmentLoader(IContentRepository, TemplateResolver)
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)
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. |