Support Depenedency Injection on MessageHandlers
Support Depedency Injection for MessageHandlers by resolving the message handlers out of the ServiceResolver or providing a MessageHandlerFactory similar to the old WebApiConfiguration.MessageHandlerFactory.
Web API doesn’t control creating the message handler instances – you create them and then add them to the configuration – so you should be able to wire up DI for message handlers yourself.
Mohamed Benothmane commented
Yes we definitely need this feature since we need to handle authentication using message handlers where we need repository injected in the message handler itself.