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.0Syntax
public class RoutingSegmentValidator : IValidate<IContent>, IValidate
Constructors
RoutingSegmentValidator(LocalizationService, IContentTypeRepository, IContentRepository, PartialRouteHandler)
Initializes a new instance of the Routing
Declaration
public RoutingSegmentValidator(LocalizationService localizationService, IContentTypeRepository contentTypeRepository, IContentRepository contentRepository, PartialRouteHandler partialRouteHandler)
Parameters
Type | Name | Description |
---|---|---|
EPi |
localizationService | The localization service. |
EPi |
contentTypeRepository | The content type repository. |
EPi |
contentRepository | The content repository. |
EPi |
partialRouteHandler |
Methods
Validate(IContent)
Validates the specified instance.
Declaration
public IEnumerable<ValidationError> Validate(IContent instance)
Parameters
Type | Name | Description |
---|---|---|
EPi |
instance | The instance. |
Returns
Type | Description |
---|---|
System. |
Implements
EPiServer.Validation.IValidate<>
EPiServer.Validation.IValidate