Class RoutingSegmentValidator

Validates that the current routing segment is not in conflict with catalog content.

Inheritance
System.Object
RoutingSegmentValidator
Implements
EPiServer.Validation.IValidate<EPiServer.Core.IContent>
EPiServer.Validation.IValidate
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: 10.8.0
Syntax
public class RoutingSegmentValidator : IValidate<IContent>, IValidate

Constructors

RoutingSegmentValidator(LocalizationService, IContentTypeRepository, IContentRepository, PartialRouteHandler)

Initializes a new instance of the RoutingSegmentValidator class.

Declaration
public RoutingSegmentValidator(LocalizationService localizationService, IContentTypeRepository contentTypeRepository, IContentRepository contentRepository, PartialRouteHandler partialRouteHandler)
Parameters
Type Name Description
EPiServer.Framework.Localization.LocalizationService localizationService

The localization service.

EPiServer.DataAbstraction.IContentTypeRepository contentTypeRepository

The content type repository.

EPiServer.IContentRepository contentRepository

The content repository.

EPiServer.Web.Routing.PartialRouteHandler partialRouteHandler

Methods

Validate(IContent)

Validates the specified instance.

Declaration
public IEnumerable<ValidationError> Validate(IContent instance)
Parameters
Type Name Description
EPiServer.Core.IContent instance

The instance.

Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.Validation.ValidationError>

Implements

EPiServer.Validation.IValidate<>
EPiServer.Validation.IValidate