London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class SeoAddressResolver

Used to resolve a Url interpreted as a SEO address.

Inheritance
System.Object
SeoAddressResolver
Implements
EPiServer.Web.ISimpleAddressResolver
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.Commerce.Routing
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public class SeoAddressResolver : ISimpleAddressResolver

Constructors

SeoAddressResolver(ICatalogSystem, ReferenceConverter)

Creates a new instance of the SeoAddressResolver class.

Declaration
public SeoAddressResolver(ICatalogSystem catalogSystem, ReferenceConverter referenceConverter)
Parameters
Type Name Description
ICatalogSystem catalogSystem

The ICatalogSystem used to load catalog content.

ReferenceConverter referenceConverter

The ReferenceConverter used to get the EPiServer.Core.ContentReference for catalog node or entry.

Methods

Declaration
protected virtual ContentReference GetCatalogContentLink(CatalogEntryDto entry)
Parameters
Type Name Description
CatalogEntryDto entry
Returns
Type Description
EPiServer.Core.ContentReference
Declaration
protected virtual ContentReference GetCatalogContentLink(CatalogNodeDto node)
Parameters
Type Name Description
CatalogNodeDto node
Returns
Type Description
EPiServer.Core.ContentReference

Resolve(UrlBuilder, SimpleAddressResolveContext)

Tries to resolve a EPiServer.Core.IContent instance from an URL interpreted as a SEO address.

Declaration
public SimpleAddressResolveResult Resolve(UrlBuilder url, SimpleAddressResolveContext simpleAddressContext)
Parameters
Type Name Description
EPiServer.UrlBuilder url

The url to resolve

EPiServer.Web.SimpleAddressResolveContext simpleAddressContext

The current context

Returns
Type Description
EPiServer.Web.SimpleAddressResolveResult

A resolved result if url could be resolved as a SEO address for a catalog content instance otherwise null

Implements

EPiServer.Web.ISimpleAddressResolver