Refactor IEmailQueue to IOutgoingEmailQueue
Renamed the `IEmailQueue` interface to `IOutgoingEmailQueue` to improve clarity and better reflect its purpose as an outgoing email queue. Updated all references to the interface across the codebase, including: - Replaced `IEmailQueue` with `IOutgoingEmailQueue` in `EmailSenderWorker.cs`. - Renamed the interface in `IOutgoingEmailQueue.cs`. - Updated `SendEmailCommandHandler` in `SendEmailCommand.cs` to use `IOutgoingEmailQueue`. - Modified dependency injection in `DependencyInjection.cs` to register `OutgoingEmailQueue` with `IOutgoingEmailQueue`. - Updated `OutgoingEmailQueue.cs` to implement `IOutgoingEmailQueue`. These changes improve code readability, maintainability, and naming consistency.
This commit is contained in:
@@ -31,7 +31,7 @@ public static class DependencyInjection
|
||||
services.AddSingleton<IEncryptionService, DataProtectionEncryptionService>();
|
||||
|
||||
// --- Email Queue (RabbitMQ) ---
|
||||
services.AddSingleton<IEmailQueue, OutgoingEmailQueue>();
|
||||
services.AddSingleton<IOutgoingEmailQueue, OutgoingEmailQueue>();
|
||||
|
||||
// --- RabbitMQ Configuration ---
|
||||
services.Configure<RabbitMqConfiguration>(
|
||||
|
||||
Reference in New Issue
Block a user