Class RoutingSegmentValidator
Validates that the current routing segment is unique among its siblings
Inheritance
System.Object
RoutingSegmentValidator
Namespace: EPiServer.Validation.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class RoutingSegmentValidator : Object, IValidate<IContent>, IValidate
Constructors
RoutingSegmentValidator(LocalizationService, IUrlSegmentLocator, IContentTypeRepository, IContentRepository, IUrlSegmentGenerator, UrlSegmentOptions)
Initializes a new instance of the Routing
Declaration
public RoutingSegmentValidator(LocalizationService localizationService, IUrlSegmentLocator urlSegmentLocator, IContentTypeRepository contentTypeRepository, IContentRepository contentRepository, IUrlSegmentGenerator urlSegmentGenerator, UrlSegmentOptions urlSegmentOptions)
Parameters
Type | Name | Description |
---|---|---|
Localization |
localizationService | |
IUrl |
urlSegmentLocator | |
IContent |
contentTypeRepository | |
IContent |
contentRepository | |
IUrl |
urlSegmentGenerator | |
Url |
urlSegmentOptions |
Properties
IISHiddenSegments
Gets or sets the IIS hidden segments.
Declaration
public List<string> IISHiddenSegments { get; set; }
Property Value
Type | Description |
---|---|
System. |
The IIS hidden segments. |
Remarks
This is exposed to make the class testable. At runtime it will use values given by EPiServer.Configuration.Settings.Instance.IISHiddenSegments.
Methods
Validate(IContent)
Validates the specified instance.
Declaration
public IEnumerable<ValidationError> Validate(IContent instance)
Parameters
Type | Name | Description |
---|---|---|
IContent | instance | The instance. |
Returns
Type | Description |
---|---|
System. |