Table of Contents

Class EmailChannelDomainValidation

Namespace
CMS.EmailLibrary
Assembly
CMS.EmailMarketing.dll

Represents the options used to validate email channel domain overrides at application startup. Validates the DomainOverrides with their corresponding CMS.Helpers.Internal.IDomainValidationService. 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 EmailChannelDomainValidation
Inheritance
object
EmailChannelDomainValidation
Extension Methods

Constructors

EmailChannelDomainValidation(IEmailChannelSendingDomainValidationService, IEmailChannelServiceDomainValidationService)

Initializes a new instance of EmailChannelDomainValidation.

public EmailChannelDomainValidation(IEmailChannelSendingDomainValidationService emailChannelSendingValidationService, IEmailChannelServiceDomainValidationService emailChannelServiceValidationService)

Parameters

emailChannelSendingValidationService IEmailChannelSendingDomainValidationService
emailChannelServiceValidationService IEmailChannelServiceDomainValidationService

Methods

Validate(string, EmailChannelDomainOptions)

Validates a specific named options instance (or all when name is null).

public ValidateOptionsResult Validate(string name, EmailChannelDomainOptions options)

Parameters

name string

The name of the options instance being validated.

options EmailChannelDomainOptions

The options instance.

Returns

ValidateOptionsResult

The Microsoft.Extensions.Options.ValidateOptionsResult result.