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
-
objectEmailChannelDomainValidation
- Extension Methods
Constructors
EmailChannelDomainValidation(IEmailChannelSendingDomainValidationService, IEmailChannelServiceDomainValidationService)
Initializes a new instance of EmailChannelDomainValidation.
public EmailChannelDomainValidation(IEmailChannelSendingDomainValidationService emailChannelSendingValidationService, IEmailChannelServiceDomainValidationService emailChannelServiceValidationService)
Parameters
emailChannelSendingValidationService
IEmailChannelSendingDomainValidationServiceemailChannelServiceValidationService
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
stringThe name of the options instance being validated.
options
EmailChannelDomainOptionsThe options instance.
Returns
- ValidateOptionsResult
The Microsoft.Extensions.Options.ValidateOptionsResult result.