Interface IEmailChannelDomainProvider
- Namespace
- CMS.EmailLibrary
- Assembly
- CMS.EmailMarketing.dll
Interface to get email domains from email channel.
public interface IEmailChannelDomainProvider
- Extension Methods
Methods
GetDomains(int, CancellationToken)
Gets domain for email channel.
Task<EmailChannelDomains> GetDomains(int emailChannelId, CancellationToken cancellationToken = default)
Parameters
emailChannelId
intEmail channel ID.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<EmailChannelDomains>
Remarks
Retrieves configured domain for email channel configured via EmailChannelDomainOptions. Values not provided via the options object are loaded from the database.
Exceptions
- InvalidOperationException
Thrown when email channel or channel of given ID was not found.