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

Class UniqueSeoGenerator

Represents class to generate Uri and Uri segment, and guarantee uniqueness.

Inheritance
System.Object
UniqueSeoGenerator
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: Mediachase.Commerce.Catalog.Data
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
public class UniqueSeoGenerator

Constructors

UniqueSeoGenerator(IUrlSegmentGenerator)

Declaration
public UniqueSeoGenerator(IUrlSegmentGenerator urlSegmentGenerator)
Parameters
Type Name Description
EPiServer.Web.IUrlSegmentGenerator urlSegmentGenerator

Properties

UriExtension

Declaration
protected virtual string UriExtension { get; }
Property Value
Type Description
System.String

Methods

GenerateSeoUri(String, String, Boolean)

Returns unique Uri value as string.

Declaration
public virtual string GenerateSeoUri(string name, string languageCode, bool includeRandomToken)
Parameters
Type Name Description
System.String name

Entity name, which is used to generate Uri.

System.String languageCode

Language code, which is included in the Uri.

System.Boolean includeRandomToken

Flag to indicate whether the random hash should be included in the Uri or not.

Returns
Type Description
System.String

Unique Uri value as string.

GenerateUriSegment(String, Boolean)

Returns unique Uri segment value as string.

Declaration
public virtual string GenerateUriSegment(string name, bool includeRandomToken)
Parameters
Type Name Description
System.String name

Entity name, which is used to generate Uri segment.

System.Boolean includeRandomToken

Flag to indicate whether the random hash should be included in the Uri segment or not.

Returns
Type Description
System.String

Unique Uri segment value as string.

GetRandomToken()

Returns a random token as string.

Declaration
protected virtual string GetRandomToken()
Returns
Type Description
System.String

Random token as string.