Try our conversational search powered by Generative AI!

Interface ISimpleAddressRouteHandler

Handles simple address for outgoing requests.

Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public interface ISimpleAddressRouteHandler

Methods

GetRouteValues(String, ContentReference, SegmentContext)

Tries to handle a segment value as a simple address.

Declaration
SimpleAddressRouteValues GetRouteValues(string urlSegment, ContentReference routeRoot, SegmentContext segmentContext)
Parameters
Type Name Description
System.String urlSegment

The simple address

ContentReference routeRoot

The route root

SegmentContext segmentContext

The segment context. Note: This should be treated as read-only. Only values of the returned SimpleAddressRouteValues instance will be used.

Returns
Type Description
SimpleAddressRouteValues

SimpleAddressRouteValues if urlSegment was handled, otherwise null

Remarks

Don't change values on the SegmentContext, they will be lost on subsequent requests when the SimpleAddressRouteValues is cached.

Extension Methods