Class IServiceCollectionExtensions
- Namespace
- CMS.EmailEngine
- Assembly
- CMS.EmailEngine.dll
Class contains extension methods for the Microsoft.Extensions.DependencyInjection.IServiceCollection interface.
public static class IServiceCollectionExtensions
- Inheritance
-
objectIServiceCollectionExtensions
Methods
AddEmailQueueServices(IServiceCollection, Action<EmailQueueOptions>)
Add services required for email queue processing.
public static IServiceCollection AddEmailQueueServices(this IServiceCollection services, Action<EmailQueueOptions> configureOptions = null)
Parameters
services
IServiceCollectionThe Microsoft.Extensions.DependencyInjection.IServiceCollection.
configureOptions
Action<EmailQueueOptions>A delegate that is used to configure EmailQueueOptions.
Returns
- IServiceCollection
Remarks
Caller also has to register an implementation of IEmailClient, because these services use it to send emails.