Class WebsiteChannelDomainValidation
Represents the options used to validate website channel domain overrides at application startup. Validates the DomainOverrides with their corresponding CMS.Websites.Internal.IWebsiteChannelDomainValidationService. It also validates the sending domain overrides for collisions.
[Obsolete("Class was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(29, 0)]
public sealed class WebsiteChannelDomainValidation
- Inheritance
-
objectWebsiteChannelDomainValidation
- Extension Methods
Constructors
WebsiteChannelDomainValidation(IWebsiteChannelDomainValidationService)
Initializes a new instance of WebsiteChannelDomainValidation.
public WebsiteChannelDomainValidation(IWebsiteChannelDomainValidationService websiteChannelDomainValidationService)
Parameters
websiteChannelDomainValidationService
IWebsiteChannelDomainValidationService
Methods
Validate(string, WebsiteChannelDomainOptions)
Validates a specific named options instance (or all when name is null).
public ValidateOptionsResult Validate(string name, WebsiteChannelDomainOptions options)
Parameters
name
stringThe name of the options instance being validated.
options
WebsiteChannelDomainOptionsThe options instance.
Returns
- ValidateOptionsResult
The Microsoft.Extensions.Options.ValidateOptionsResult result.