Files
agrynco 2757869176 feat: consume transactional email notifications
Add contract validation, SMTP delivery results, terminal failure context, neutral development seeding, and local Docker setup.

Ref: IT-1033
2026-08-04 12:32:28 +03:00

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;
}
}