Skip to content

Commit

Permalink
rename class
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Sep 3, 2023
1 parent 9a7ca0c commit f921d2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ public interface IBlogNotification
Task Enqueue<T>(MailMesageTypes type, string[] receipts, T payload) where T : class;
}

public class BlogNotification : IBlogNotification
public class AzureStorageQueueNotification : IBlogNotification
{
private readonly ILogger<BlogNotification> _logger;
private readonly ILogger<AzureStorageQueueNotification> _logger;
private readonly NotificationSettings _notificationSettings;

public BlogNotification(
ILogger<BlogNotification> logger,
public AzureStorageQueueNotification(
ILogger<AzureStorageQueueNotification> logger,
IBlogConfig blogConfig)
{
_logger = logger;
Expand Down
2 changes: 1 addition & 1 deletion src/Moonglade.Email.Client/ServiceCollectionExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public static class ServiceCollectionExtension
{
public static IServiceCollection AddNotification(this IServiceCollection services)
{
services.AddScoped<IBlogNotification, BlogNotification>();
services.AddScoped<IBlogNotification, AzureStorageQueueNotification>();
return services;
}
}

0 comments on commit f921d2c

Please sign in to comment.