mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-07-16 17:47:22 +00:00
21 lines
699 B
C#
21 lines
699 B
C#
using Features.Emails.Services;
|
|
using Infrastructure.Email;
|
|
using Infrastructure.Email.Templates.Rendering;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Features.Emails.DependencyInjection;
|
|
|
|
/// <summary>
|
|
/// Registers the services owned by the Emails feature slice.
|
|
/// </summary>
|
|
public static class FeaturesEmailsServiceCollectionExtensions
|
|
{
|
|
public static IServiceCollection AddFeaturesEmails(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<IEmailProvider, SmtpEmailProvider>();
|
|
services.AddScoped<IEmailTemplateProvider, EmailTemplateProvider>();
|
|
services.AddScoped<IEmailDispatcher, EmailDispatcher>();
|
|
return services;
|
|
}
|
|
}
|