November Happy Hour will be moved to Thursday December 5th.

Class SimpleAddressSegmentRouter

A structure implementation over simple addresses.

Inheritance
System.Object
SimpleAddressSegmentRouter
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: 9.12.2
Syntax
public class SimpleAddressSegmentRouter : DefaultUrlSegmentRouter, IUrlSegmentRouter

Constructors

SimpleAddressSegmentRouter(IContentRepository, AncestorReferencesLoader, Func<SiteDefinition, ContentReference>, IRoutingSegmentLoader, SimpleAddressSegmentCache, IEnumerable<ISimpleAddressRouteHandler>)

Initializes a new instance of the SimpleAddressSegmentRouter class.

Declaration
public SimpleAddressSegmentRouter(IContentRepository contentRepository, AncestorReferencesLoader ancestorRequestCachedLoader, Func<SiteDefinition, ContentReference> rootResolver, IRoutingSegmentLoader routingSegmentLoader, SimpleAddressSegmentCache simpleAddressSegmentCache, IEnumerable<ISimpleAddressRouteHandler> simpleAddressRouters)
Parameters
Type Name Description
IContentRepository contentRepository

The content repository.

AncestorReferencesLoader ancestorRequestCachedLoader

The ancestor request cached loader.

System.Func<SiteDefinition, ContentReference> rootResolver

The root resolver.

IRoutingSegmentLoader routingSegmentLoader

The routing segment loader.

SimpleAddressSegmentCache simpleAddressSegmentCache

The simple address cache.

System.Collections.Generic.IEnumerable<ISimpleAddressRouteHandler> simpleAddressRouters

The simple address resolvers.

SimpleAddressSegmentRouter(Func<SiteDefinition, ContentReference>)

Creates a a SimpleAddressSegmentRouter with required parameters.

Declaration
public SimpleAddressSegmentRouter(Func<SiteDefinition, ContentReference> rootResolver)
Parameters
Type Name Description
System.Func<SiteDefinition, ContentReference> rootResolver

The root resolver.

Methods

ResolveContentForIncoming(ContentReference, String, SegmentContext)

Resolve a contentlink which match urlsegment.

Declaration
public override ContentReference ResolveContentForIncoming(ContentReference contentlink, string urlSegment, SegmentContext context)
Parameters
Type Name Description
ContentReference contentlink

The contentlink.

System.String urlSegment

The url.

SegmentContext context

The segment context.

Returns
Type Description
ContentReference

The resolved content link

Overrides

Implements

Extension Methods