As far as I can see from the source, registering an HTTP request in an XML configuration is not supported. As you can mention, only three instance-scope values ββare allowed (for each of the dependencies, for one instance, and for life expectancy).
Also, looking at how the per-http-request scope works, it uses the InstancePerMatchingLifetimeScope registration call with the httpRequest key. Again, there is no way to configure a match-to-lifetime XML configuration.
The configuration path is code configuration.
Peter Lillevold
source share