Skip to content

Commit 89ee38f

Browse files
committed
Register EmailSender in DI container since dependents now expect it to be injected
1 parent d7415fd commit 89ee38f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ServiceControl/Notifications/Email/EmailNotificationHostBuilderExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public static IHostApplicationBuilder AddEmailNotifications(this IHostApplicatio
1010
{
1111
var services = hostBuilder.Services;
1212
services.AddSingleton<EmailThrottlingState>();
13+
services.AddSingleton<EmailSender>();
1314
services.AddDomainEventHandler<CustomChecksMailNotification>();
1415
services.AddHostedService<EmailNotificationHostedService>();
1516
return hostBuilder;

0 commit comments

Comments
 (0)