Class DefaultSimpleAddressRouteHandler
Default implementation of ISimpleAddressRouteHandler, which handles simple address in CMS.
Inheritance
System.Object
DefaultSimpleAddressRouteHandler
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
Assembly: EPiServer.dll
Version: 9.12.2Syntax
[ServiceConfiguration(ServiceType = typeof(ISimpleAddressRouteHandler))]
public class DefaultSimpleAddressRouteHandler : ISimpleAddressRouteHandler
Constructors
DefaultSimpleAddressRouteHandler(SiteDefinitionResolver, ISimpleAddressResolver, DefaultUrlSegmentRouter)
Initializes a new instance of the DefaultSimpleAddressRouter class.
Declaration
public DefaultSimpleAddressRouteHandler(SiteDefinitionResolver siteDefinitionResolver, ISimpleAddressResolver simpleAddressResolver, DefaultUrlSegmentRouter defaultUrlSegmentRouter)
Parameters
Type | Name | Description |
---|---|---|
SiteDefinitionResolver | siteDefinitionResolver | |
ISimpleAddressResolver | simpleAddressResolver | |
DefaultUrlSegmentRouter | defaultUrlSegmentRouter |
DefaultSimpleAddressRouteHandler(SiteDefinitionResolver, SimpleAddress, DefaultUrlSegmentRouter)
Initializes a new instance of the DefaultSimpleAddressRouter class.
Declaration
[Obsolete("Use alternative Constructor")]
public DefaultSimpleAddressRouteHandler(SiteDefinitionResolver siteDefinitionResolver, SimpleAddress simpleAddressResolver, DefaultUrlSegmentRouter defaultUrlSegmentRouter)
Parameters
Type | Name | Description |
---|---|---|
SiteDefinitionResolver | siteDefinitionResolver | |
SimpleAddress | simpleAddressResolver | |
DefaultUrlSegmentRouter | defaultUrlSegmentRouter |
Methods
GetRouteValues(String, ContentReference, SegmentContext)
Tries to handle a segment value as a simple address.
Declaration
public 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 |
Returns
Type | Description |
---|---|
SimpleAddressRouteValues |
|