Table of Contents

Class WebsiteChannelDomainValidation

Namespace
CMS.Websites
Assembly
CMS.Websites.dll

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
object
WebsiteChannelDomainValidation
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 string

The name of the options instance being validated.

options WebsiteChannelDomainOptions

The options instance.

Returns

ValidateOptionsResult

The Microsoft.Extensions.Options.ValidateOptionsResult result.