RabbitMQ.Client.Core.DependencyInjection icon indicating copy to clipboard operation
RabbitMQ.Client.Core.DependencyInjection copied to clipboard

How to get the message handler from the service provider ?

Open Anthony-Breneliere opened this issue 5 years ago • 0 comments

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 ?

Anthony-Breneliere avatar Oct 23 '20 14:10 Anthony-Breneliere