antonyvorontsov / RabbitMQ.Client.Core.DependencyInjection

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

How to get the message handler from the service provider ? #64

Open Anthony-Breneliere opened 3 years ago

Anthony-Breneliere commented 3 years ago

Hello,

I recently added RabbitMQ.Client.Core.DependencyInjection project in replacement of RabbitMQ.Client.

For unit testing, I need to get a specific handler from the service provider, that I have injected in my app's startup with the command: .AddMessageHandlerSingleton<CustomMessageHandler>("routing.key");

How to do it ?