Class EmailPreviewTab
- Namespace
- Kentico.Xperience.Admin.DigitalMarketing.UIPages
- Assembly
- Kentico.Xperience.Admin.DigitalMarketing.dll
Email preview page.
public sealed class EmailPreviewTab : Page<EmailPreviewTemplateProperties>, IPage
- Inheritance
-
objectEmailPreviewTab
- Implements
- Inherited Members
- Extension Methods
Constructors
EmailPreviewTab(IInfoProvider<EmailConfigurationInfo>, IEmailContentResolverFactory, IEmailDataContextProvider, IEmailDetailedStatusRetriever, IEmailConfigurationAdminModelRetriever, IEmailMarkupBuilderFactory, IEmailRecipientContextProvider)
Initializes a new instance of the EmailPreviewTab class.
public EmailPreviewTab(IInfoProvider<EmailConfigurationInfo> emailConfigurationInfoProvider, IEmailContentResolverFactory emailContentResolverFactory, IEmailDataContextProvider dataContextProvider, IEmailDetailedStatusRetriever emailDetailedStatusRetriever, IEmailConfigurationAdminModelRetriever emailConfigurationAdminModelRetriever, IEmailMarkupBuilderFactory emailMarkupBuilderFactory, IEmailRecipientContextProvider emailRecipientContextProvider)
Parameters
emailConfigurationInfoProvider
IInfoProvider<EmailConfigurationInfo>emailContentResolverFactory
IEmailContentResolverFactorydataContextProvider
IEmailDataContextProvideremailDetailedStatusRetriever
IEmailDetailedStatusRetrieveremailConfigurationAdminModelRetriever
IEmailConfigurationAdminModelRetrieveremailMarkupBuilderFactory
IEmailMarkupBuilderFactoryemailRecipientContextProvider
IEmailRecipientContextProvider
Remarks
This class is not supposed to be instantiated directly in a custom code.
Properties
ContentLanguageIdentifier
Content language identifier.
[PageParameter(typeof(ContentLanguageModelBinder), typeof(EmailChannelContentLanguage))]
public ContentLanguageUrlIdentifier ContentLanguageIdentifier { get; set; }
Property Value
EmailConfigurationID
Email configuration identifier.
[PageParameter(typeof(IntPageModelBinder), typeof(EmailEditLayout))]
public int EmailConfigurationID { get; set; }
Property Value
- int
Methods
ConfigureTemplateProperties(EmailPreviewTemplateProperties)
Gets the object representing client side template properties.
public override Task<EmailPreviewTemplateProperties> ConfigureTemplateProperties(EmailPreviewTemplateProperties properties)
Parameters
properties
EmailPreviewTemplatePropertiesInitialized properties object.
Returns
GetContent(CancellationToken)
Gets content of an email as HTML.
public Task<string> GetContent(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken
Returns
- Task<string>
Returns email content as HTML string.
GetStatusModel(CancellationToken)
Endpoint that returns status of the email.
public Task<ICommandResponse<DetailedStatusModel>> GetStatusModel(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken