I successfully wired Autofac in my ASP.NET WebAPI project, and now I am wondering how to be able to resolve services in my MessageHandlers.
As MessageHandlers have to be added at application startup, it's clear that I won't be able to resolve them in a request lifetime scope. No problem here.
However, I would like to find a way to get the current request lifetime scope during the execution of the SendAsync method of the MessageHandler, in order to be able to (for instance) perform token verification, logging in a repository, etc...
How should I do that?