-
Notifications
You must be signed in to change notification settings - Fork 457
Description
The PerWebRequest HttpModule has served everyone well for applications hosted in IIS, to enable "Per webrequest" lifestyle.
However, in recent years, OWIN has become more popular and with it, the ability to self-host websites. Windsor's PerWebRequestLifeStyle is incompatible with OWIN's self-hosting mechanism, as HTTP modules only work in the IIS pipeline.
Some OWIN-compatible implementations of this lifestyle have been hacked together, see StackOverflow and GitHub.
However I think it would be best if such implementation was cleaned up, put under test, and integrated with the main project here. It would be a nice bonus if the same configuration syntax could be used as well (i.e. calling LifestylePerWebRequest()
). Maybe there could be some magic to make it work under all hosting scenarios.