Class ServiceCollectionExtensions
- Namespace
- CMS.EmailMarketing
- Assembly
- CMS.EmailMarketing.dll
Class contains extension methods for the Microsoft.Extensions.DependencyInjection.IServiceCollection interface.
public static class ServiceCollectionExtensions
- Inheritance
-
objectServiceCollectionExtensions
Methods
AddXperienceChannelSmtpBouncedEmails(IServiceCollection, string, Action<BouncedEmailsOptions>)
Adds services required for bounces handling when using SMTP server for specific channel.
public static IServiceCollection AddXperienceChannelSmtpBouncedEmails(this IServiceCollection serviceCollection, string channelName, Action<BouncedEmailsOptions> configure = null)
Parameters
serviceCollection
IServiceCollectionThe Microsoft.Extensions.DependencyInjection.IServiceCollection.
channelName
stringThe name of the channel.
configure
Action<BouncedEmailsOptions>A delegate that is used to configure BouncedEmailsOptions.
Returns
- IServiceCollection
Remarks
When used in combination with AddXperienceSmtpBouncedEmails(IServiceCollection, Action<BouncedEmailsOptions>) and in case of missing configuration for some channel, the bounce checker registered via AddXperienceSmtpBouncedEmails(IServiceCollection, Action<BouncedEmailsOptions>) will be used as a fallback bounce checker for channels without configuration.
AddXperienceSmtpBouncedEmails(IServiceCollection, Action<BouncedEmailsOptions>)
Adds services required for bounces handling when using SMTP server.
public static IServiceCollection AddXperienceSmtpBouncedEmails(this IServiceCollection serviceCollection, Action<BouncedEmailsOptions> configure = null)
Parameters
serviceCollection
IServiceCollectionconfigure
Action<BouncedEmailsOptions>
Returns
- IServiceCollection
Remarks
When used in combination with AddXperienceChannelSmtpBouncedEmails(IServiceCollection, string, Action<BouncedEmailsOptions>) and in case of missing configuration for some channel, this bounce checker will be used as a fallback bounce checker for channels without configuration.