A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Class UniqueValueGenerator

Generates values for fields that needs to be unique.

Inheritance
System.Object
UniqueValueGenerator
Namespace: Mediachase.Commerce.Catalog.Data
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public class UniqueValueGenerator : Object

Constructors

UniqueValueGenerator(ICatalogSystem, IUrlSegmentGenerator)

Initializes a new instance of the UniqueValueGenerator class.

Declaration
public UniqueValueGenerator(ICatalogSystem catalogContext, IUrlSegmentGenerator urlSegmentGenerator)
Parameters
Type Name Description
ICatalogSystem catalogContext

The catalog context.

EPiServer.Web.IUrlSegmentGenerator urlSegmentGenerator

The URL segment generator.

Methods

GenerateCode(String)

Generates a unique code for the specified name.

Declaration
public virtual string GenerateCode(string name)
Parameters
Type Name Description
System.String name

The name.

Returns
Type Description
System.String