Remove RabbitMQ messaging functionality

The application no longer uses RabbitMQ for command publishing and consumption. This commit removes all RabbitMQ-related code, including:

- Removed RabbitMQ service registrations in `DependencyInjection.cs`.
- Deleted `RabbitMqCommandConsumer.cs`, which implemented a background service for consuming commands.
- Deleted `RabbitMqCommandPublisher.cs`, which implemented a publisher for RabbitMQ-based commands.
- Removed RabbitMQ-specific properties (`ExchangeName`, `QueueName`, `RoutingKey`) from `RabbitMqConfiguration.cs`.

These changes reflect a shift in the application's messaging strategy or architecture.
This commit is contained in:
2026-07-23 15:42:03 +02:00
parent 0e53e8f726
commit 169ef7d86b
4 changed files with 0 additions and 395 deletions

View File

@@ -37,12 +37,6 @@ public static class DependencyInjection
services.Configure<RabbitMqConfiguration>(
configuration.GetSection(RabbitMqConfiguration.SectionName));
// --- RabbitMQ Command Publisher ---
services.AddSingleton<ICommandPublisher, RabbitMqCommandPublisher>();
// --- RabbitMQ Command Consumer (Background Service) ---
services.AddHostedService<RabbitMqCommandConsumer>();
// --- Data Protection (for encryption) ---
services.AddDataProtection()
.PersistKeysToFileSystem(new DirectoryInfo(@"C:\ProgramData\EmailService\Keys"))