2757869176
Add contract validation, SMTP delivery results, terminal failure context, neutral development seeding, and local Docker setup. Ref: IT-1033
20 lines
844 B
C#
20 lines
844 B
C#
using HrynCo.NotificationService.Worker.Services.EmailProcessing;
|
|
using Hrynco.RabbitMq;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace HrynCo.NotificationService.Worker.Services;
|
|
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
public static IServiceCollection AddNotificationWorkerServices(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IRabbitMqPublisher, RabbitMqPublisher>();
|
|
services.AddScoped<IEmailTemplateService, EmailTemplateService>();
|
|
services.AddScoped<IEmailTemplateRenderingService, EmailTemplateRenderingService>();
|
|
services.AddScoped<ISmtpEmailSender, SmtpEmailSender>();
|
|
services.AddScoped<INotificationResultPublisher, NotificationResultPublisher>();
|
|
services.AddScoped<ISendEmailService, SendEmailService>();
|
|
return services;
|
|
}
|
|
}
|