antonyvorontsov / RabbitMQ.Client.Core.DependencyInjection

.Net Core library-wrapper of RabbitMQ.Client for Dependency Injection.
MIT License
111 stars 36 forks source link

ProducingChannelIsNullException: Producing channel is null #75

Open tomatostudio opened 3 years ago

tomatostudio commented 3 years ago

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

antonyvorontsov commented 3 years ago

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.