Refactor the `DependencyInjection` class to enhance the validation and setup process for `RabbitMQ` when used as the `ConsumerType`. Remove the outdated logic for adding an HTTP client based on `options.ApiUrl`. Introduce a check for `options.RabbitMQ` and throw a detailed `InvalidOperationException` if it is missing. Use `services.AddMessagingServiceClient` to configure the messaging service client with the appropriate section name.
2.5 KiB
2.5 KiB