Class SimpleAddressValidator
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Validates that a simple address for a page is unique within its siblings.
Inheritance
System.Object
SimpleAddressValidator
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.Validation.Internal
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[ServiceConfiguration]
public class SimpleAddressValidator : IValidate<PageData>, IValidate
Constructors
SimpleAddressValidator(IContentRepository, LocalizationService, IUrlSegmentLocator, ISiteDefinitionResolver, IUrlSegmentGenerator)
Declaration
public SimpleAddressValidator(IContentRepository contentRepository, LocalizationService localizationService, IUrlSegmentLocator urlSegmentLocator, ISiteDefinitionResolver siteDefinitionResolver, IUrlSegmentGenerator urlSegmentGenerator)
Parameters
Type | Name | Description |
---|---|---|
IContentRepository | contentRepository | |
LocalizationService | localizationService | |
IUrlSegmentLocator | urlSegmentLocator | |
ISiteDefinitionResolver | siteDefinitionResolver | |
IUrlSegmentGenerator | urlSegmentGenerator |
Properties
BaseDirectory
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets or sets the base directory.
Declaration
public string BaseDirectory { get; set; }
Property Value
Type | Description |
---|---|
System.String | The base directory. |
Remarks
The implemenation uses WebRootPath, the reason the dicitonary is exposed to make it possible to replace during tests.
VirtualPathMappings
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
[Obsolete("Virtual Path Providers is no longed being used")]
public IDictionary<string, string> VirtualPathMappings { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> |
Methods
Validate(PageData)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Validates the specified instance.
Declaration
public IEnumerable<ValidationError> Validate(PageData page)
Parameters
Type | Name | Description |
---|---|---|
PageData | page | The instance. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ValidationError> |