RabbitMQ.Client.Core.DependencyInjection
RabbitMQ.Client.Core.DependencyInjection copied to clipboard
ProducingChannelIsNullException: Producing channel is null
Hi there,
I just run the Examples.Producer. It throws an exception. RabbitMQ.Client.Core.DependencyInjection.Exceptions.ProducingChannelIsNullException:“Producing channel is null. Configure IProducingService or full functional IProducingService for producing messages”. It seems the ChannelDeclarationHostedService is not working properly. Do you find the same issue?
Cheers, JJ
Hi!
Yeah, It can be messy right now. I am currently trying to finish a big refactoring of the library. You can take a look at this issue https://github.com/AntonyVorontsov/RabbitMQ.Client.Core.DependencyInjection/issues/72 and at this pull request https://github.com/AntonyVorontsov/RabbitMQ.Client.Core.DependencyInjection/pull/73.
ChannelDeclarationHostedService has been added recently, but it is not in the active library version yet. There are a lot of work to come.
You can either can look at the latest stable version 4.3.0 or wait a little bit for my refactoring completion. I hope I will release a new version in a week or so.
Best regards.