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

Interface ISimpleAddressRouteHandler

Handles simple address for outgoing requests.

Namespace: EPiServer.Web.Routing
Assembly: EPiServer.dll
Version: 9.12.2
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