using Finch.Mails.Dispatchers;
using Microsoft.Extensions.DependencyInjection;
namespace Finch.Mails;
public static class MailsServiceCollectionExtensions
{
///
/// Replaces the current mail dispatcher implementation with a new one
///
public static IServiceCollection AddMailDispatcher(this IServiceCollection services) where T : class, IMailDispatcher
{
services.Replace(ServiceLifetime.Scoped);
return services;
}
}