I'm not massively fond of Castle's diagnostics. There's certainly no general framework such as StructureMap has: you just ask for something and wait for the inevitable exceptions. However, the guy who wrote this bit of code for PerWebRequestLifestyle will be bought a drink if I ever meet him:
It's amazing how often people will write FAQs explaining obscure error messages when sticking the diagnostics directly into the code would be more convenient, both for them, and the users.
Technorati Tags: Diagnostics,Castle Windsor