Class RoutingSegmentValidator
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Validates that the current routing segment is unique among its siblings
Inheritance
Inherited Members
Namespace: EPiServer.Validation.Internal
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[ServiceConfiguration]
public class RoutingSegmentValidator : IValidate<IContent>, IValidate
Constructors
RoutingSegmentValidator(LocalizationService, IUrlSegmentLocator, IContentTypeRepository, IContentRepository, IUrlSegmentGenerator, UrlSegmentOptions)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the RoutingSegmentValidator class.
Declaration
public RoutingSegmentValidator(LocalizationService localizationService, IUrlSegmentLocator urlSegmentLocator, IContentTypeRepository contentTypeRepository, IContentRepository contentRepository, IUrlSegmentGenerator urlSegmentGenerator, UrlSegmentOptions urlSegmentOptions)
Parameters
Type | Name | Description |
---|---|---|
LocalizationService | localizationService | |
IUrlSegmentLocator | urlSegmentLocator | |
IContentTypeRepository | contentTypeRepository | |
IContentRepository | contentRepository | |
IUrlSegmentGenerator | urlSegmentGenerator | |
UrlSegmentOptions | urlSegmentOptions |
Properties
IISHiddenSegments
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets or sets the IIS hidden segments.
Declaration
public List<string> IISHiddenSegments { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Validates the specified instance.
Declaration
public IEnumerable<ValidationError> Validate(IContent instance)
Parameters
Type | Name | Description |
---|---|---|
IContent | instance | The instance. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ValidationError> |